{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * DeliveryPipelineName name = * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); @@ -84,6 +86,8 @@ *To customize credentials: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * CloudDeploySettings cloudDeploySettings = * CloudDeploySettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -94,6 +98,8 @@ *To customize the endpoint: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * CloudDeploySettings cloudDeploySettings = * CloudDeploySettings.newBuilder().setEndpoint(myEndpoint).build(); * CloudDeployClient cloudDeployClient = CloudDeployClient.create(cloudDeploySettings); @@ -171,6 +177,8 @@ public final OperationsClient getOperationsClient() { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (DeliveryPipeline element : @@ -199,9 +207,10 @@ public final ListDeliveryPipelinesPagedResponse listDeliveryPipelines(LocationNa *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - * String parent = - * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (DeliveryPipeline element : * cloudDeployClient.listDeliveryPipelines(parent).iterateAll()) { * // doThingsWith(element); @@ -226,12 +235,12 @@ public final ListDeliveryPipelinesPagedResponse listDeliveryPipelines(String par *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ListDeliveryPipelinesRequest request = * ListDeliveryPipelinesRequest.newBuilder() - * .setParent( - * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - * .toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") @@ -259,12 +268,12 @@ public final ListDeliveryPipelinesPagedResponse listDeliveryPipelines( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ListDeliveryPipelinesRequest request = * ListDeliveryPipelinesRequest.newBuilder() - * .setParent( - * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - * .toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") @@ -291,12 +300,12 @@ public final ListDeliveryPipelinesPagedResponse listDeliveryPipelines( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ListDeliveryPipelinesRequest request = * ListDeliveryPipelinesRequest.newBuilder() - * .setParent( - * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - * .toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") @@ -330,6 +339,8 @@ public final ListDeliveryPipelinesPagedResponse listDeliveryPipelines( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * DeliveryPipelineName name = * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); @@ -356,6 +367,8 @@ public final DeliveryPipeline getDeliveryPipeline(DeliveryPipelineName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * String name = * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString(); @@ -380,6 +393,8 @@ public final DeliveryPipeline getDeliveryPipeline(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * GetDeliveryPipelineRequest request = * GetDeliveryPipelineRequest.newBuilder() @@ -405,6 +420,8 @@ public final DeliveryPipeline getDeliveryPipeline(GetDeliveryPipelineRequest req *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * GetDeliveryPipelineRequest request = * GetDeliveryPipelineRequest.newBuilder() @@ -431,6 +448,8 @@ public final DeliveryPipeline getDeliveryPipeline(GetDeliveryPipelineRequest req *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build(); @@ -466,9 +485,10 @@ public final OperationFuturecreateDelivery * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - * String parent = - * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build(); * String deliveryPipelineId = "deliveryPipelineId-632411535"; * DeliveryPipeline response = @@ -502,12 +522,12 @@ public final OperationFuturecreateDelivery * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * CreateDeliveryPipelineRequest request = * CreateDeliveryPipelineRequest.newBuilder() - * .setParent( - * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - * .toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setDeliveryPipelineId("deliveryPipelineId-632411535") * .setDeliveryPipeline(DeliveryPipeline.newBuilder().build()) * .setRequestId("requestId693933066") @@ -532,12 +552,12 @@ public final OperationFuturecreateDelivery * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * CreateDeliveryPipelineRequest request = * CreateDeliveryPipelineRequest.newBuilder() - * .setParent( - * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - * .toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setDeliveryPipelineId("deliveryPipelineId-632411535") * .setDeliveryPipeline(DeliveryPipeline.newBuilder().build()) * .setRequestId("requestId693933066") @@ -562,12 +582,12 @@ public final OperationFuturecreateDelivery * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * CreateDeliveryPipelineRequest request = * CreateDeliveryPipelineRequest.newBuilder() - * .setParent( - * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - * .toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setDeliveryPipelineId("deliveryPipelineId-632411535") * .setDeliveryPipeline(DeliveryPipeline.newBuilder().build()) * .setRequestId("requestId693933066") @@ -592,6 +612,8 @@ public final OperationFuturecreateDelivery * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -624,6 +646,8 @@ public final OperationFutureupdateDelivery * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * UpdateDeliveryPipelineRequest request = * UpdateDeliveryPipelineRequest.newBuilder() @@ -652,6 +676,8 @@ public final OperationFutureupdateDelivery * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * UpdateDeliveryPipelineRequest request = * UpdateDeliveryPipelineRequest.newBuilder() @@ -680,6 +706,8 @@ public final OperationFutureupdateDelivery * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * UpdateDeliveryPipelineRequest request = * UpdateDeliveryPipelineRequest.newBuilder() @@ -708,6 +736,8 @@ public final OperationFutureupdateDelivery * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * DeliveryPipelineName name = * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); @@ -735,6 +765,8 @@ public final OperationFuturedeleteDeliveryPipelineAsy * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * String name = * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString(); @@ -759,6 +791,8 @@ public final OperationFuturedeleteDeliveryPipelineAsy * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * DeleteDeliveryPipelineRequest request = * DeleteDeliveryPipelineRequest.newBuilder() @@ -790,6 +824,8 @@ public final OperationFuturedeleteDeliveryPipelineAsy * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * DeleteDeliveryPipelineRequest request = * DeleteDeliveryPipelineRequest.newBuilder() @@ -821,6 +857,8 @@ public final OperationFuturedeleteDeliveryPipelineAsy * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * DeleteDeliveryPipelineRequest request = * DeleteDeliveryPipelineRequest.newBuilder() @@ -852,6 +890,8 @@ public final OperationFuturedeleteDeliveryPipelineAsy * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Target element : cloudDeployClient.listTargets(parent).iterateAll()) { @@ -879,8 +919,10 @@ public final ListTargetsPagedResponse listTargets(LocationName parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - * String parent = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Target element : cloudDeployClient.listTargets(parent).iterateAll()) { * // doThingsWith(element); * } @@ -903,10 +945,12 @@ public final ListTargetsPagedResponse listTargets(String parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ListTargetsRequest request = * ListTargetsRequest.newBuilder() - * .setParent(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") @@ -932,10 +976,12 @@ public final ListTargetsPagedResponse listTargets(ListTargetsRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ListTargetsRequest request = * ListTargetsRequest.newBuilder() - * .setParent(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") @@ -961,10 +1007,12 @@ public final ListTargetsPagedResponse listTargets(ListTargetsRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ListTargetsRequest request = * ListTargetsRequest.newBuilder() - * .setParent(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") @@ -996,6 +1044,8 @@ public final UnaryCallablelistTargetsC * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * TargetName name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]"); * Target response = cloudDeployClient.getTarget(name); @@ -1019,6 +1069,8 @@ public final Target getTarget(TargetName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * String name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString(); * Target response = cloudDeployClient.getTarget(name); @@ -1041,6 +1093,8 @@ public final Target getTarget(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * GetTargetRequest request = * GetTargetRequest.newBuilder() @@ -1064,6 +1118,8 @@ public final Target getTarget(GetTargetRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * GetTargetRequest request = * GetTargetRequest.newBuilder() @@ -1086,6 +1142,8 @@ public final UnaryCallablegetTargetCallable() { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Target target = Target.newBuilder().build(); @@ -1118,8 +1176,10 @@ public final OperationFuturecreateTargetAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - * String parent = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Target target = Target.newBuilder().build(); * String targetId = "targetId-441951604"; * Target response = cloudDeployClient.createTargetAsync(parent, target, targetId).get(); @@ -1150,10 +1210,12 @@ public final OperationFuturecreateTargetAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * CreateTargetRequest request = * CreateTargetRequest.newBuilder() - * .setParent(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setTargetId("targetId-441951604") * .setTarget(Target.newBuilder().build()) * .setRequestId("requestId693933066") @@ -1178,10 +1240,12 @@ public final OperationFuturecreateTargetAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * CreateTargetRequest request = * CreateTargetRequest.newBuilder() - * .setParent(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setTargetId("targetId-441951604") * .setTarget(Target.newBuilder().build()) * .setRequestId("requestId693933066") @@ -1206,10 +1270,12 @@ public final OperationFuturecreateTargetAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * CreateTargetRequest request = * CreateTargetRequest.newBuilder() - * .setParent(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setTargetId("targetId-441951604") * .setTarget(Target.newBuilder().build()) * .setRequestId("requestId693933066") @@ -1232,6 +1298,8 @@ public final UnaryCallablecreateTargetCallable( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * Target target = Target.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1260,6 +1328,8 @@ public final OperationFutureupdateTargetAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * UpdateTargetRequest request = * UpdateTargetRequest.newBuilder() @@ -1288,6 +1358,8 @@ public final OperationFutureupdateTargetAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * UpdateTargetRequest request = * UpdateTargetRequest.newBuilder() @@ -1316,6 +1388,8 @@ public final OperationFutureupdateTargetAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * UpdateTargetRequest request = * UpdateTargetRequest.newBuilder() @@ -1342,6 +1416,8 @@ public final UnaryCallableupdateTargetCallable( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * TargetName name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]"); * cloudDeployClient.deleteTargetAsync(name).get(); @@ -1365,6 +1441,8 @@ public final OperationFuturedeleteTargetAsync(TargetN * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * String name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString(); * cloudDeployClient.deleteTargetAsync(name).get(); @@ -1387,6 +1465,8 @@ public final OperationFuturedeleteTargetAsync(String * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * DeleteTargetRequest request = * DeleteTargetRequest.newBuilder() @@ -1415,6 +1495,8 @@ public final OperationFuturedeleteTargetAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * DeleteTargetRequest request = * DeleteTargetRequest.newBuilder() @@ -1443,6 +1525,8 @@ public final OperationFuturedeleteTargetAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * DeleteTargetRequest request = * DeleteTargetRequest.newBuilder() @@ -1469,6 +1553,8 @@ public final UnaryCallabledeleteTargetCallable( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * DeliveryPipelineName parent = * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); @@ -1496,6 +1582,8 @@ public final ListReleasesPagedResponse listReleases(DeliveryPipelineName parent) *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * String parent = * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString(); @@ -1520,6 +1608,8 @@ public final ListReleasesPagedResponse listReleases(String parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ListReleasesRequest request = * ListReleasesRequest.newBuilder() @@ -1551,6 +1641,8 @@ public final ListReleasesPagedResponse listReleases(ListReleasesRequest request) *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ListReleasesRequest request = * ListReleasesRequest.newBuilder() @@ -1582,6 +1674,8 @@ public final ListReleasesPagedResponse listReleases(ListReleasesRequest request) *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ListReleasesRequest request = * ListReleasesRequest.newBuilder() @@ -1619,6 +1713,8 @@ public final UnaryCallablelistReleas * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ReleaseName name = * ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); @@ -1643,6 +1739,8 @@ public final Release getRelease(ReleaseName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * String name = * ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]").toString(); @@ -1666,6 +1764,8 @@ public final Release getRelease(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * GetReleaseRequest request = * GetReleaseRequest.newBuilder() @@ -1691,6 +1791,8 @@ public final Release getRelease(GetReleaseRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * GetReleaseRequest request = * GetReleaseRequest.newBuilder() @@ -1715,6 +1817,8 @@ public final UnaryCallablegetReleaseCallable() { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * DeliveryPipelineName parent = * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); @@ -1749,6 +1853,8 @@ public final OperationFuturecreateReleaseAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * String parent = * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString(); @@ -1783,6 +1889,8 @@ public final OperationFuturecreateReleaseAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * CreateReleaseRequest request = * CreateReleaseRequest.newBuilder() @@ -1813,6 +1921,8 @@ public final OperationFuturecreateReleaseAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * CreateReleaseRequest request = * CreateReleaseRequest.newBuilder() @@ -1843,6 +1953,8 @@ public final OperationFuturecreateReleaseAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * CreateReleaseRequest request = * CreateReleaseRequest.newBuilder() @@ -1871,6 +1983,8 @@ public final UnaryCallablecreateReleaseCallabl * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * RolloutName name = * RolloutName.of( @@ -1897,6 +2011,8 @@ public final ApproveRolloutResponse approveRollout(RolloutName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * String name = * RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") @@ -1922,6 +2038,8 @@ public final ApproveRolloutResponse approveRollout(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ApproveRolloutRequest request = * ApproveRolloutRequest.newBuilder() @@ -1953,6 +2071,8 @@ public final ApproveRolloutResponse approveRollout(ApproveRolloutRequest request *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ApproveRolloutRequest request = * ApproveRolloutRequest.newBuilder() @@ -1985,6 +2105,8 @@ public final ApproveRolloutResponse approveRollout(ApproveRolloutRequest request *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ReleaseName parent = * ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); @@ -2012,6 +2134,8 @@ public final ListRolloutsPagedResponse listRollouts(ReleaseName parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * String parent = * ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]").toString(); @@ -2036,6 +2160,8 @@ public final ListRolloutsPagedResponse listRollouts(String parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ListRolloutsRequest request = * ListRolloutsRequest.newBuilder() @@ -2067,6 +2193,8 @@ public final ListRolloutsPagedResponse listRollouts(ListRolloutsRequest request) *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ListRolloutsRequest request = * ListRolloutsRequest.newBuilder() @@ -2098,6 +2226,8 @@ public final ListRolloutsPagedResponse listRollouts(ListRolloutsRequest request) *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ListRolloutsRequest request = * ListRolloutsRequest.newBuilder() @@ -2135,6 +2265,8 @@ public final UnaryCallablelistRollou * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * RolloutName name = * RolloutName.of( @@ -2160,6 +2292,8 @@ public final Rollout getRollout(RolloutName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * String name = * RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") @@ -2184,6 +2318,8 @@ public final Rollout getRollout(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * GetRolloutRequest request = * GetRolloutRequest.newBuilder() @@ -2214,6 +2350,8 @@ public final Rollout getRollout(GetRolloutRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * GetRolloutRequest request = * GetRolloutRequest.newBuilder() @@ -2243,6 +2381,8 @@ public final UnaryCallablegetRolloutCallable() { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ReleaseName parent = * ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); @@ -2277,6 +2417,8 @@ public final OperationFuture* *createRolloutAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * String parent = * ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]").toString(); @@ -2311,6 +2453,8 @@ public final OperationFuture* *createRolloutAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * CreateRolloutRequest request = * CreateRolloutRequest.newBuilder() @@ -2341,6 +2485,8 @@ public final OperationFuture* *createRolloutAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * CreateRolloutRequest request = * CreateRolloutRequest.newBuilder() @@ -2371,6 +2517,8 @@ public final OperationFuture* *createRolloutAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * CreateRolloutRequest request = * CreateRolloutRequest.newBuilder() @@ -2399,6 +2547,8 @@ public final UnaryCallable* *createRolloutCallabl * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ConfigName name = ConfigName.of("[PROJECT]", "[LOCATION]"); * Config response = cloudDeployClient.getConfig(name); @@ -2421,6 +2571,8 @@ public final Config getConfig(ConfigName name) { ** *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * String name = ConfigName.of("[PROJECT]", "[LOCATION]").toString(); * Config response = cloudDeployClient.getConfig(name); @@ -2442,6 +2594,8 @@ public final Config getConfig(String name) { ** *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * GetConfigRequest request = * GetConfigRequest.newBuilder() @@ -2465,6 +2619,8 @@ public final Config getConfig(GetConfigRequest request) { ** *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * GetConfigRequest request = * GetConfigRequest.newBuilder() diff --git a/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java b/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java index b1eea4f..0463ade 100644 --- a/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java +++ b/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,6 +58,8 @@ ** *For example, to set the total timeout of getDeliveryPipeline to 30 seconds: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * CloudDeploySettings.Builder cloudDeploySettingsBuilder = CloudDeploySettings.newBuilder(); * cloudDeploySettingsBuilder * .getDeliveryPipelineSettings() diff --git a/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/package-info.java b/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/package-info.java index 2b90d25..61ef015 100644 --- a/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/package-info.java +++ b/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,6 +27,8 @@ ** *Sample for CloudDeployClient: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * DeliveryPipelineName name = * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); diff --git a/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java b/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java index a0c53a1..a708fab 100644 --- a/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java +++ b/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java b/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java index d4aff8d..b1a6f90 100644 --- a/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java +++ b/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -105,6 +105,8 @@ *+ * + * Protobuf enum {@code google.cloud.deploy.v1.Rollout.FailureCause} + */ + public enum FailureCause implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *For example, to set the total timeout of getDeliveryPipeline to 30 seconds: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * CloudDeployStubSettings.Builder cloudDeploySettingsBuilder = * CloudDeployStubSettings.newBuilder(); * cloudDeploySettingsBuilder diff --git a/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployCallableFactory.java b/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployCallableFactory.java index 191fb9e..c5e405f 100644 --- a/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployCallableFactory.java +++ b/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java b/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java index 2050e20..95e7021 100644 --- a/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java +++ b/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientTest.java b/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientTest.java index 8b755b0..ca1a73d 100644 --- a/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientTest.java +++ b/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeploy.java b/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeploy.java index e0528d6..a32f64f 100644 --- a/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeploy.java +++ b/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeploy.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeployImpl.java b/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeployImpl.java index 13b8d26..5cf008d 100644 --- a/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeployImpl.java +++ b/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeployImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/grpc-google-cloud-deploy-v1/pom.xml b/grpc-google-cloud-deploy-v1/pom.xml index d4c8cb7..c60c9ed 100644 --- a/grpc-google-cloud-deploy-v1/pom.xml +++ b/grpc-google-cloud-deploy-v1/pom.xml @@ -4,13 +4,13 @@+ * + *4.0.0 com.google.api.grpc grpc-google-cloud-deploy-v1 -1.0.4 +1.1.0 grpc-google-cloud-deploy-v1 GRPC library for google-cloud-deploy com.google.cloud google-cloud-deploy-parent -1.0.4 +1.1.0 diff --git a/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java b/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java index 3c17dee..f338fb2 100644 --- a/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java +++ b/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java @@ -28,6 +28,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/deploy/v1/cloud_deploy.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class CloudDeployGrpc { private CloudDeployGrpc() {} diff --git a/pom.xml b/pom.xml index 96d59b6..e3fefe6 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-deploy-parent pom -1.0.4 +1.1.0 Google Google CLoud Deploy Parent https://github.com/googleapis/java-deploy @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config -1.3.2 +1.4.0 @@ -69,23 +69,23 @@ com.google.cloud google-cloud-deploy -1.0.4 +1.1.0 com.google.api.grpc grpc-google-cloud-deploy-v1 -1.0.4 +1.1.0 com.google.api.grpc proto-google-cloud-deploy-v1 -1.0.4 +1.1.0 @@ -121,7 +121,7 @@ com.google.cloud google-cloud-shared-dependencies -2.10.0 +2.12.0 pom import org.apache.maven.plugins maven-project-info-reports-plugin -3.2.2 +3.3.0 @@ -148,7 +148,7 @@ org.apache.maven.plugins maven-javadoc-plugin -3.3.2 +3.4.0 html diff --git a/proto-google-cloud-deploy-v1/pom.xml b/proto-google-cloud-deploy-v1/pom.xml index 7f3365f..eabaac1 100644 --- a/proto-google-cloud-deploy-v1/pom.xml +++ b/proto-google-cloud-deploy-v1/pom.xml @@ -4,13 +4,13 @@4.0.0 com.google.api.grpc proto-google-cloud-deploy-v1 -1.0.4 +1.1.0 proto-google-cloud-deploy-v1 Proto library for google-cloud-deploy com.google.cloud google-cloud-deploy-parent -1.0.4 +1.1.0 diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AnthosCluster.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AnthosCluster.java new file mode 100644 index 0000000..a432128 --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AnthosCluster.java @@ -0,0 +1,649 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +/** + * + * + * + * Information specifying an Anthos Cluster. + *+ * + * Protobuf type {@code google.cloud.deploy.v1.AnthosCluster} + */ +public final class AnthosCluster extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.AnthosCluster) + AnthosClusterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AnthosCluster.newBuilder() to construct. + private AnthosCluster(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private AnthosCluster() { + membership_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnthosCluster(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AnthosCluster( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + membership_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AnthosCluster_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AnthosCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.AnthosCluster.class, + com.google.cloud.deploy.v1.AnthosCluster.Builder.class); + } + + public static final int MEMBERSHIP_FIELD_NUMBER = 1; + private volatile java.lang.Object membership_; + /** + * + * + *+ * Membership of the GKE Hub-registered cluster to which to apply the Skaffold + * configuration. Format is + * `projects/{project}/locations/{location}/memberships/{membership_name}`. + *+ * + *string membership = 1 [(.google.api.resource_reference) = { ... }
+ * + * @return The membership. + */ + @java.lang.Override + public java.lang.String getMembership() { + java.lang.Object ref = membership_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + membership_ = s; + return s; + } + } + /** + * + * + *+ * Membership of the GKE Hub-registered cluster to which to apply the Skaffold + * configuration. Format is + * `projects/{project}/locations/{location}/memberships/{membership_name}`. + *+ * + *string membership = 1 [(.google.api.resource_reference) = { ... }
+ * + * @return The bytes for membership. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMembershipBytes() { + java.lang.Object ref = membership_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + membership_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(membership_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, membership_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(membership_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, membership_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.deploy.v1.AnthosCluster)) { + return super.equals(obj); + } + com.google.cloud.deploy.v1.AnthosCluster other = (com.google.cloud.deploy.v1.AnthosCluster) obj; + + if (!getMembership().equals(other.getMembership())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MEMBERSHIP_FIELD_NUMBER; + hash = (53 * hash) + getMembership().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.deploy.v1.AnthosCluster parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.AnthosCluster parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.AnthosCluster parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.AnthosCluster parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.AnthosCluster parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.AnthosCluster parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.AnthosCluster parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.AnthosCluster parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.AnthosCluster parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.AnthosCluster parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.AnthosCluster parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.AnthosCluster parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.deploy.v1.AnthosCluster prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *+ * Information specifying an Anthos Cluster. + *+ * + * Protobuf type {@code google.cloud.deploy.v1.AnthosCluster} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.AnthosCluster) + com.google.cloud.deploy.v1.AnthosClusterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AnthosCluster_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AnthosCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.AnthosCluster.class, + com.google.cloud.deploy.v1.AnthosCluster.Builder.class); + } + + // Construct using com.google.cloud.deploy.v1.AnthosCluster.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + membership_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AnthosCluster_descriptor; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.AnthosCluster getDefaultInstanceForType() { + return com.google.cloud.deploy.v1.AnthosCluster.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.deploy.v1.AnthosCluster build() { + com.google.cloud.deploy.v1.AnthosCluster result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.AnthosCluster buildPartial() { + com.google.cloud.deploy.v1.AnthosCluster result = + new com.google.cloud.deploy.v1.AnthosCluster(this); + result.membership_ = membership_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.deploy.v1.AnthosCluster) { + return mergeFrom((com.google.cloud.deploy.v1.AnthosCluster) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.deploy.v1.AnthosCluster other) { + if (other == com.google.cloud.deploy.v1.AnthosCluster.getDefaultInstance()) return this; + if (!other.getMembership().isEmpty()) { + membership_ = other.membership_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.deploy.v1.AnthosCluster parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.deploy.v1.AnthosCluster) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object membership_ = ""; + /** + * + * + * + * Membership of the GKE Hub-registered cluster to which to apply the Skaffold + * configuration. Format is + * `projects/{project}/locations/{location}/memberships/{membership_name}`. + *+ * + *string membership = 1 [(.google.api.resource_reference) = { ... }
+ * + * @return The membership. + */ + public java.lang.String getMembership() { + java.lang.Object ref = membership_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + membership_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * Membership of the GKE Hub-registered cluster to which to apply the Skaffold + * configuration. Format is + * `projects/{project}/locations/{location}/memberships/{membership_name}`. + *+ * + *string membership = 1 [(.google.api.resource_reference) = { ... }
+ * + * @return The bytes for membership. + */ + public com.google.protobuf.ByteString getMembershipBytes() { + java.lang.Object ref = membership_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + membership_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * Membership of the GKE Hub-registered cluster to which to apply the Skaffold + * configuration. Format is + * `projects/{project}/locations/{location}/memberships/{membership_name}`. + *+ * + *string membership = 1 [(.google.api.resource_reference) = { ... }
+ * + * @param value The membership to set. + * @return This builder for chaining. + */ + public Builder setMembership(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + membership_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * Membership of the GKE Hub-registered cluster to which to apply the Skaffold + * configuration. Format is + * `projects/{project}/locations/{location}/memberships/{membership_name}`. + *+ * + *string membership = 1 [(.google.api.resource_reference) = { ... }
+ * + * @return This builder for chaining. + */ + public Builder clearMembership() { + + membership_ = getDefaultInstance().getMembership(); + onChanged(); + return this; + } + /** + * + * + *+ * Membership of the GKE Hub-registered cluster to which to apply the Skaffold + * configuration. Format is + * `projects/{project}/locations/{location}/memberships/{membership_name}`. + *+ * + *string membership = 1 [(.google.api.resource_reference) = { ... }
+ * + * @param value The bytes for membership to set. + * @return This builder for chaining. + */ + public Builder setMembershipBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + membership_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.AnthosCluster) + } + + // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.AnthosCluster) + private static final com.google.cloud.deploy.v1.AnthosCluster DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.AnthosCluster(); + } + + public static com.google.cloud.deploy.v1.AnthosCluster getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public AnthosCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnthosCluster(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.AnthosCluster getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AnthosClusterOrBuilder.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AnthosClusterOrBuilder.java new file mode 100644 index 0000000..9e3fbd2 --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AnthosClusterOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface AnthosClusterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.AnthosCluster) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * Membership of the GKE Hub-registered cluster to which to apply the Skaffold + * configuration. Format is + * `projects/{project}/locations/{location}/memberships/{membership_name}`. + *+ * + *string membership = 1 [(.google.api.resource_reference) = { ... }
+ * + * @return The membership. + */ + java.lang.String getMembership(); + /** + * + * + *+ * Membership of the GKE Hub-registered cluster to which to apply the Skaffold + * configuration. Format is + * `projects/{project}/locations/{location}/memberships/{membership_name}`. + *+ * + *string membership = 1 [(.google.api.resource_reference) = { ... }
+ * + * @return The bytes for membership. + */ + com.google.protobuf.ByteString getMembershipBytes(); +} diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ApproveRolloutRequest.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ApproveRolloutRequest.java index 90ab57b..13e57fe 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ApproveRolloutRequest.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ApproveRolloutRequest.java @@ -93,6 +93,8 @@ private ApproveRolloutRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ApproveRolloutResponse.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ApproveRolloutResponse.java index d944706..bd0c20e 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ApproveRolloutResponse.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ApproveRolloutResponse.java @@ -79,6 +79,8 @@ private ApproveRolloutResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/BuildArtifact.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/BuildArtifact.java index 0162da3..c51eac6 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/BuildArtifact.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/BuildArtifact.java @@ -96,6 +96,8 @@ private BuildArtifact( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java index d38e6da..a36110a 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java @@ -111,6 +111,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_deploy_v1_GkeCluster_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_deploy_v1_GkeCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_AnthosCluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_AnthosCluster_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_deploy_v1_ListTargetsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -312,7 +316,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "liveryPipeline\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022" + "\032\n\rallow_missing\030\003 \001(\010B\003\340A\001\022\032\n\rvalidate_" + "only\030\004 \001(\010B\003\340A\001\022\022\n\005force\030\006 \001(\010B\003\340A\001\022\021\n\004e" - + "tag\030\005 \001(\tB\003\340A\001\"\332\005\n\006Target\022\021\n\004name\030\001 \001(\tB" + + "tag\030\005 \001(\tB\003\340A\001\"\233\006\n\006Target\022\021\n\004name\030\001 \001(\tB" + "\003\340A\001\022\026\n\ttarget_id\030\002 \001(\tB\003\340A\003\022\020\n\003uid\030\003 \001(" + "\tB\003\340A\003\022\030\n\013description\030\004 \001(\tB\003\340A\001\022I\n\013anno" + "tations\030\005 \003(\0132/.google.cloud.deploy.v1.T" @@ -323,85 +327,97 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "uf.TimestampB\003\340A\003\0224\n\013update_time\030\t \001(\0132\032" + ".google.protobuf.TimestampB\003\340A\003\0221\n\003gke\030\017" + " \001(\0132\".google.cloud.deploy.v1.GkeCluster" - + "H\000\022\021\n\004etag\030\014 \001(\tB\003\340A\001\022B\n\021execution_confi" - + "gs\030\020 \003(\0132\'.google.cloud.deploy.v1.Execut" - + "ionConfig\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:`\352A]\n!cloud" - + "deploy.googleapis.com/Target\0228projects/{" - + "project}/locations/{location}/targets/{t" - + "arget}B\023\n\021deployment_target\"\350\002\n\017Executio" - + "nConfig\022V\n\006usages\030\001 \003(\0162A.google.cloud.d" - + "eploy.v1.ExecutionConfig.ExecutionEnviro" - + "nmentUsageB\003\340A\002\022@\n\014default_pool\030\002 \001(\0132#." - + "google.cloud.deploy.v1.DefaultPoolB\003\340A\001H" - + "\000\022@\n\014private_pool\030\003 \001(\0132#.google.cloud.d" - + "eploy.v1.PrivatePoolB\003\340A\001H\000\"`\n\031Execution" - + "EnvironmentUsage\022+\n\'EXECUTION_ENVIRONMEN" - + "T_USAGE_UNSPECIFIED\020\000\022\n\n\006RENDER\020\001\022\n\n\006DEP" - + "LOY\020\002B\027\n\025execution_environment\"J\n\013Defaul" - + "tPool\022\034\n\017service_account\030\001 \001(\tB\003\340A\001\022\035\n\020a" - + "rtifact_storage\030\002 \001(\tB\003\340A\001\"\215\001\n\013PrivatePo" - + "ol\022A\n\013worker_pool\030\001 \001(\tB,\340A\002\372A&\n$cloudbu" - + "ild.googleapis.com/WorkerPool\022\034\n\017service" - + "_account\030\002 \001(\tB\003\340A\001\022\035\n\020artifact_storage\030" - + "\003 \001(\tB\003\340A\001\"D\n\nGkeCluster\0226\n\007cluster\030\001 \001(" - + "\tB%\372A\"\n container.googleapis.com/Cluster" - + "\"\254\001\n\022ListTargetsRequest\0229\n\006parent\030\001 \001(\tB" - + ")\340A\002\372A#\022!clouddeploy.googleapis.com/Targ" - + "et\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token" - + "\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010orde" - + "r_by\030\005 \001(\tB\003\340A\001\"t\n\023ListTargetsResponse\022/" - + "\n\007targets\030\001 \003(\0132\036.google.cloud.deploy.v1" - + ".Target\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" - + "achable\030\003 \003(\t\"K\n\020GetTargetRequest\0227\n\004nam" - + "e\030\001 \001(\tB)\340A\002\372A#\n!clouddeploy.googleapis." - + "com/Target\"\322\001\n\023CreateTargetRequest\0229\n\006pa" - + "rent\030\001 \001(\tB)\340A\002\372A#\022!clouddeploy.googleap" - + "is.com/Target\022\026\n\ttarget_id\030\002 \001(\tB\003\340A\002\0223\n" - + "\006target\030\003 \001(\0132\036.google.cloud.deploy.v1.T" - + "argetB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rv" - + "alidate_only\030\005 \001(\010B\003\340A\001\"\321\001\n\023UpdateTarget" - + "Request\0224\n\013update_mask\030\001 \001(\0132\032.google.pr" - + "otobuf.FieldMaskB\003\340A\002\0223\n\006target\030\002 \001(\0132\036." - + "google.cloud.deploy.v1.TargetB\003\340A\002\022\027\n\nre" - + "quest_id\030\003 \001(\tB\003\340A\001\022\032\n\rallow_missing\030\004 \001" - + "(\010B\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\262\001\n\023" - + "DeleteTargetRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A" - + "#\n!clouddeploy.googleapis.com/Target\022\027\n\n" - + "request_id\030\002 \001(\tB\003\340A\001\022\032\n\rallow_missing\030\003" - + " \001(\010B\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022\021\n" - + "\004etag\030\005 \001(\tB\003\340A\001\"\272\r\n\007Release\022\021\n\004name\030\001 \001" - + "(\tB\003\340A\001\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\023\n\013description" - + "\030\003 \001(\t\022E\n\013annotations\030\004 \003(\01320.google.clo" - + "ud.deploy.v1.Release.AnnotationsEntry\022;\n" - + "\006labels\030\005 \003(\0132+.google.cloud.deploy.v1.R" - + "elease.LabelsEntry\0224\n\013create_time\030\006 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\022:\n\021rend" - + "er_start_time\030\007 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\0228\n\017render_end_time\030\010 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\022\033\n\023skaffo" - + "ld_config_uri\030\021 \001(\t\022\034\n\024skaffold_config_p" - + "ath\030\t \001(\t\022>\n\017build_artifacts\030\n \003(\0132%.goo" - + "gle.cloud.deploy.v1.BuildArtifact\022Q\n\032del" - + "ivery_pipeline_snapshot\030\013 \001(\0132(.google.c" - + "loud.deploy.v1.DeliveryPipelineB\003\340A\003\022=\n\020" - + "target_snapshots\030\014 \003(\0132\036.google.cloud.de" - + "ploy.v1.TargetB\003\340A\003\022F\n\014render_state\030\r \001(" - + "\0162+.google.cloud.deploy.v1.Release.Rende" - + "rStateB\003\340A\003\022\014\n\004etag\030\020 \001(\t\022\030\n\020skaffold_ve" - + "rsion\030\023 \001(\t\022S\n\020target_artifacts\030\024 \003(\01324." - + "google.cloud.deploy.v1.Release.TargetArt" - + "ifactsEntryB\003\340A\003\022O\n\016target_renders\030\026 \003(\013" - + "22.google.cloud.deploy.v1.Release.Target" - + "RendersEntryB\003\340A\003\032\224\002\n\014TargetRender\022@\n\017re" - + "ndering_build\030\001 \001(\tB\'\340A\003\372A!\n\037cloudbuild." - + "googleapis.com/Build\022\\\n\017rendering_state\030" - + "\002 \001(\0162>.google.cloud.deploy.v1.Release.T" - + "argetRender.TargetRenderStateB\003\340A\003\"d\n\021Ta" - + "rgetRenderState\022#\n\037TARGET_RENDER_STATE_U" - + "NSPECIFIED\020\000\022\r\n\tSUCCEEDED\020\001\022\n\n\006FAILED\020\002\022" - + "\017\n\013IN_PROGRESS\020\003\0322\n\020AnnotationsEntry\022\013\n\003" + + "H\000\022?\n\016anthos_cluster\030\021 \001(\0132%.google.clou" + + "d.deploy.v1.AnthosClusterH\000\022\021\n\004etag\030\014 \001(" + + "\tB\003\340A\001\022B\n\021execution_configs\030\020 \003(\0132\'.goog" + + "le.cloud.deploy.v1.ExecutionConfig\0322\n\020An" + + "notationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001:`\352A]\n!clouddeploy.googleap" + + "is.com/Target\0228projects/{project}/locati" + + "ons/{location}/targets/{target}B\023\n\021deplo" + + "yment_target\"\350\003\n\017ExecutionConfig\022V\n\006usag" + + "es\030\001 \003(\0162A.google.cloud.deploy.v1.Execut" + + "ionConfig.ExecutionEnvironmentUsageB\003\340A\002" + + "\022@\n\014default_pool\030\002 \001(\0132#.google.cloud.de" + + "ploy.v1.DefaultPoolB\003\340A\001H\000\022@\n\014private_po" + + "ol\030\003 \001(\0132#.google.cloud.deploy.v1.Privat" + + "ePoolB\003\340A\001H\000\022A\n\013worker_pool\030\004 \001(\tB,\340A\001\372A" + + "&\n$cloudbuild.googleapis.com/WorkerPool\022" + + "\034\n\017service_account\030\005 \001(\tB\003\340A\001\022\035\n\020artifac" + + "t_storage\030\006 \001(\tB\003\340A\001\"`\n\031ExecutionEnviron" + + "mentUsage\022+\n\'EXECUTION_ENVIRONMENT_USAGE" + + "_UNSPECIFIED\020\000\022\n\n\006RENDER\020\001\022\n\n\006DEPLOY\020\002B\027" + + "\n\025execution_environment\"J\n\013DefaultPool\022\034" + + "\n\017service_account\030\001 \001(\tB\003\340A\001\022\035\n\020artifact" + + "_storage\030\002 \001(\tB\003\340A\001\"\215\001\n\013PrivatePool\022A\n\013w" + + "orker_pool\030\001 \001(\tB,\340A\002\372A&\n$cloudbuild.goo" + + "gleapis.com/WorkerPool\022\034\n\017service_accoun" + + "t\030\002 \001(\tB\003\340A\001\022\035\n\020artifact_storage\030\003 \001(\tB\003" + + "\340A\001\"^\n\nGkeCluster\0226\n\007cluster\030\001 \001(\tB%\372A\"\n" + + " container.googleapis.com/Cluster\022\030\n\013int" + + "ernal_ip\030\002 \001(\010B\003\340A\001\"J\n\rAnthosCluster\0229\n\n" + + "membership\030\001 \001(\tB%\372A\"\n gkehub.googleapis" + + ".com/Membership\"\254\001\n\022ListTargetsRequest\0229" + + "\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!clouddeploy.goog" + + "leapis.com/Target\022\026\n\tpage_size\030\002 \001(\005B\003\340A" + + "\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001" + + "(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"t\n\023ListTa" + + "rgetsResponse\022/\n\007targets\030\001 \003(\0132\036.google." + + "cloud.deploy.v1.Target\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"K\n\020GetTarge" + + "tRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!clouddep" + + "loy.googleapis.com/Target\"\322\001\n\023CreateTarg" + + "etRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!cloud" + + "deploy.googleapis.com/Target\022\026\n\ttarget_i" + + "d\030\002 \001(\tB\003\340A\002\0223\n\006target\030\003 \001(\0132\036.google.cl" + + "oud.deploy.v1.TargetB\003\340A\002\022\027\n\nrequest_id\030" + + "\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\321" + + "\001\n\023UpdateTargetRequest\0224\n\013update_mask\030\001 " + + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\0223\n\006" + + "target\030\002 \001(\0132\036.google.cloud.deploy.v1.Ta" + + "rgetB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\ral" + + "low_missing\030\004 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030" + + "\005 \001(\010B\003\340A\001\"\262\001\n\023DeleteTargetRequest\0227\n\004na" + + "me\030\001 \001(\tB)\340A\002\372A#\n!clouddeploy.googleapis" + + ".com/Target\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\032\n\r" + + "allow_missing\030\003 \001(\010B\003\340A\001\022\032\n\rvalidate_onl" + + "y\030\004 \001(\010B\003\340A\001\022\021\n\004etag\030\005 \001(\tB\003\340A\001\"\363\016\n\007Rele" + + "ase\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\020\n\003uid\030\002 \001(\tB\003\340A\003" + + "\022\023\n\013description\030\003 \001(\t\022E\n\013annotations\030\004 \003" + + "(\01320.google.cloud.deploy.v1.Release.Anno" + + "tationsEntry\022;\n\006labels\030\005 \003(\0132+.google.cl" + + "oud.deploy.v1.Release.LabelsEntry\0224\n\013cre" + + "ate_time\030\006 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022:\n\021render_start_time\030\007 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0228\n\017render_en" + + "d_time\030\010 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\022\033\n\023skaffold_config_uri\030\021 \001(\t\022\034\n\024sk" + + "affold_config_path\030\t \001(\t\022>\n\017build_artifa" + + "cts\030\n \003(\0132%.google.cloud.deploy.v1.Build" + + "Artifact\022Q\n\032delivery_pipeline_snapshot\030\013" + + " \001(\0132(.google.cloud.deploy.v1.DeliveryPi" + + "pelineB\003\340A\003\022=\n\020target_snapshots\030\014 \003(\0132\036." + + "google.cloud.deploy.v1.TargetB\003\340A\003\022F\n\014re" + + "nder_state\030\r \001(\0162+.google.cloud.deploy.v" + + "1.Release.RenderStateB\003\340A\003\022\014\n\004etag\030\020 \001(\t" + + "\022\030\n\020skaffold_version\030\023 \001(\t\022S\n\020target_art" + + "ifacts\030\024 \003(\01324.google.cloud.deploy.v1.Re" + + "lease.TargetArtifactsEntryB\003\340A\003\022O\n\016targe" + + "t_renders\030\026 \003(\01322.google.cloud.deploy.v1" + + ".Release.TargetRendersEntryB\003\340A\003\032\315\003\n\014Tar" + + "getRender\022@\n\017rendering_build\030\001 \001(\tB\'\340A\003\372" + + "A!\n\037cloudbuild.googleapis.com/Build\022\\\n\017r" + + "endering_state\030\002 \001(\0162>.google.cloud.depl" + + "oy.v1.Release.TargetRender.TargetRenderS" + + "tateB\003\340A\003\022U\n\rfailure_cause\030\004 \001(\01629.googl" + + "e.cloud.deploy.v1.Release.TargetRender.F" + + "ailureCauseB\003\340A\003\"d\n\021TargetRenderState\022#\n" + + "\037TARGET_RENDER_STATE_UNSPECIFIED\020\000\022\r\n\tSU" + + "CCEEDED\020\001\022\n\n\006FAILED\020\002\022\017\n\013IN_PROGRESS\020\003\"`" + + "\n\014FailureCause\022\035\n\031FAILURE_CAUSE_UNSPECIF" + + "IED\020\000\022\033\n\027CLOUD_BUILD_UNAVAILABLE\020\001\022\024\n\020EX" + + "ECUTION_FAILED\020\002\0322\n\020AnnotationsEntry\022\013\n\003" + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEn" + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032^\n\024T" + "argetArtifactsEntry\022\013\n\003key\030\001 \001(\t\0225\n\005valu" @@ -433,7 +449,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "is.com/DeliveryPipeline\022\027\n\nrelease_id\030\002 " + "\001(\tB\003\340A\002\0225\n\007release\030\003 \001(\0132\037.google.cloud" + ".deploy.v1.ReleaseB\003\340A\002\022\027\n\nrequest_id\030\004 " - + "\001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\211\n\n" + + "\001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\350\013\n" + "\007Rollout\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\020\n\003uid\030\002 \001(\t" + "B\003\340A\003\022\023\n\013description\030\003 \001(\t\022E\n\013annotation" + "s\030\004 \003(\01320.google.cloud.deploy.v1.Rollout" @@ -452,164 +468,172 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogle.cloud.deploy.v1.Rollout.StateB\003\340A\003\022" + "\033\n\016failure_reason\030\016 \001(\tB\003\340A\003\022@\n\017deployin" + "g_build\030\021 \001(\tB\'\340A\003\372A!\n\037cloudbuild.google" - + "apis.com/Build\022\014\n\004etag\030\020 \001(\t\0322\n\020Annotati" - + "onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001\"{\n\rApprovalState\022\036\n\032APPROVAL_STA" - + "TE_UNSPECIFIED\020\000\022\022\n\016NEEDS_APPROVAL\020\001\022\032\n\026" - + "DOES_NOT_NEED_APPROVAL\020\002\022\014\n\010APPROVED\020\003\022\014" - + "\n\010REJECTED\020\004\"\231\001\n\005State\022\025\n\021STATE_UNSPECIF" - + "IED\020\000\022\r\n\tSUCCEEDED\020\001\022\n\n\006FAILED\020\002\022\017\n\013IN_P" - + "ROGRESS\020\003\022\024\n\020PENDING_APPROVAL\020\004\022\025\n\021APPRO" - + "VAL_REJECTED\020\005\022\013\n\007PENDING\020\006\022\023\n\017PENDING_R" - + "ELEASE\020\007:\235\001\352A\231\001\n\"clouddeploy.googleapis." - + "com/Rollout\022sprojects/{project}/location" - + "s/{location}/deliveryPipelines/{delivery" - + "_pipeline}/releases/{release}/rollouts/{" - + "rollout}\"\256\001\n\023ListRolloutsRequest\022:\n\006pare" - + "nt\030\001 \001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis" - + ".com/Release\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340" - + "A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"w\n\024ListRollout" - + "sResponse\0221\n\010rollouts\030\001 \003(\0132\037.google.clo" - + "ud.deploy.v1.Rollout\022\027\n\017next_page_token\030" - + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\021GetRollout" - + "Request\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"clouddepl" - + "oy.googleapis.com/Rollout\"\327\001\n\024CreateRoll" - + "outRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\n\"clou" - + "ddeploy.googleapis.com/Release\022\027\n\nrollou" - + "t_id\030\002 \001(\tB\003\340A\002\0225\n\007rollout\030\003 \001(\0132\037.googl" - + "e.cloud.deploy.v1.RolloutB\003\340A\002\022\027\n\nreques" - + "t_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003" - + "\340A\001\"\200\002\n\021OperationMetadata\0224\n\013create_time" - + "\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "1\n\010end_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030" - + "\004 \001(\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022" - + "#\n\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013" - + "api_version\030\007 \001(\tB\003\340A\003\"h\n\025ApproveRollout" - + "Request\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"clouddepl" - + "oy.googleapis.com/Rollout\022\025\n\010approved\030\002 " - + "\001(\010B\003\340A\002\"\030\n\026ApproveRolloutResponse\"\337\001\n\006C" - + "onfig\022\014\n\004name\030\001 \001(\t\022H\n\022supported_version" - + "s\030\002 \003(\0132\'.google.cloud.deploy.v1.Skaffol" - + "dVersionB\003\340A\003\022%\n\030default_skaffold_versio" - + "n\030\003 \001(\tB\003\340A\003:V\352AS\n!clouddeploy.googleapi" - + "s.com/Config\022.projects/{project}/locatio" - + "ns/{location}/config\"O\n\017SkaffoldVersion\022" - + "\017\n\007version\030\001 \001(\t\022+\n\020support_end_date\030\002 \001" - + "(\0132\021.google.type.Date\"K\n\020GetConfigReques" - + "t\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!clouddeploy.goo" - + "gleapis.com/Config2\352\035\n\013CloudDeploy\022\314\001\n\025L" - + "istDeliveryPipelines\0224.google.cloud.depl" - + "oy.v1.ListDeliveryPipelinesRequest\0325.goo" - + "gle.cloud.deploy.v1.ListDeliveryPipeline" - + "sResponse\"F\202\323\344\223\0027\0225/v1/{parent=projects/" - + "*/locations/*}/deliveryPipelines\332A\006paren" - + "t\022\271\001\n\023GetDeliveryPipeline\0222.google.cloud" - + ".deploy.v1.GetDeliveryPipelineRequest\032(." - + "google.cloud.deploy.v1.DeliveryPipeline\"" - + "D\202\323\344\223\0027\0225/v1/{name=projects/*/locations/" - + "*/deliveryPipelines/*}\332A\004name\022\231\002\n\026Create" - + "DeliveryPipeline\0225.google.cloud.deploy.v" - + "1.CreateDeliveryPipelineRequest\032\035.google" - + ".longrunning.Operation\"\250\001\202\323\344\223\002J\"5/v1/{pa" - + "rent=projects/*/locations/*}/deliveryPip" - + "elines:\021delivery_pipeline\332A-parent,deliv" - + "ery_pipeline,delivery_pipeline_id\312A%\n\020De" - + "liveryPipeline\022\021OperationMetadata\022\233\002\n\026Up" - + "dateDeliveryPipeline\0225.google.cloud.depl" - + "oy.v1.UpdateDeliveryPipelineRequest\032\035.go" - + "ogle.longrunning.Operation\"\252\001\202\323\344\223\002\\2G/v1" - + "/{delivery_pipeline.name=projects/*/loca" - + "tions/*/deliveryPipelines/*}:\021delivery_p" - + "ipeline\332A\035delivery_pipeline,update_mask\312" - + "A%\n\020DeliveryPipeline\022\021OperationMetadata\022" - + "\341\001\n\026DeleteDeliveryPipeline\0225.google.clou" - + "d.deploy.v1.DeleteDeliveryPipelineReques" - + "t\032\035.google.longrunning.Operation\"q\202\323\344\223\0027" - + "*5/v1/{name=projects/*/locations/*/deliv" - + "eryPipelines/*}\332A\004name\312A*\n\025google.protob" - + "uf.Empty\022\021OperationMetadata\022\244\001\n\013ListTarg" - + "ets\022*.google.cloud.deploy.v1.ListTargets" - + "Request\032+.google.cloud.deploy.v1.ListTar" - + "getsResponse\"<\202\323\344\223\002-\022+/v1/{parent=projec" - + "ts/*/locations/*}/targets\332A\006parent\022\221\001\n\tG" - + "etTarget\022(.google.cloud.deploy.v1.GetTar" - + "getRequest\032\036.google.cloud.deploy.v1.Targ" - + "et\":\202\323\344\223\002-\022+/v1/{name=projects/*/locatio" - + "ns/*/targets/*}\332A\004name\022\317\001\n\014CreateTarget\022" - + "+.google.cloud.deploy.v1.CreateTargetReq" - + "uest\032\035.google.longrunning.Operation\"s\202\323\344" - + "\223\0025\"+/v1/{parent=projects/*/locations/*}" - + "/targets:\006target\332A\027parent,target,target_" - + "id\312A\033\n\006Target\022\021OperationMetadata\022\321\001\n\014Upd" - + "ateTarget\022+.google.cloud.deploy.v1.Updat" - + "eTargetRequest\032\035.google.longrunning.Oper" - + "ation\"u\202\323\344\223\002<22/v1/{target.name=projects" - + "/*/locations/*/targets/*}:\006target\332A\022targ" - + "et,update_mask\312A\033\n\006Target\022\021OperationMeta" - + "data\022\303\001\n\014DeleteTarget\022+.google.cloud.dep" - + "loy.v1.DeleteTargetRequest\032\035.google.long" - + "running.Operation\"g\202\323\344\223\002-*+/v1/{name=pro" - + "jects/*/locations/*/targets/*}\332A\004name\312A*" - + "\n\025google.protobuf.Empty\022\021OperationMetada" - + "ta\022\274\001\n\014ListReleases\022+.google.cloud.deplo" - + "y.v1.ListReleasesRequest\032,.google.cloud." - + "deploy.v1.ListReleasesResponse\"Q\202\323\344\223\002B\022@" - + "/v1/{parent=projects/*/locations/*/deliv" - + "eryPipelines/*}/releases\332A\006parent\022\251\001\n\nGe" - + "tRelease\022).google.cloud.deploy.v1.GetRel" - + "easeRequest\032\037.google.cloud.deploy.v1.Rel" - + "ease\"O\202\323\344\223\002B\022@/v1/{name=projects/*/locat" - + "ions/*/deliveryPipelines/*/releases/*}\332A" - + "\004name\022\353\001\n\rCreateRelease\022,.google.cloud.d" - + "eploy.v1.CreateReleaseRequest\032\035.google.l" - + "ongrunning.Operation\"\214\001\202\323\344\223\002K\"@/v1/{pare" - + "nt=projects/*/locations/*/deliveryPipeli" - + "nes/*}/releases:\007release\332A\031parent,releas" - + "e,release_id\312A\034\n\007Release\022\021OperationMetad" - + "ata\022\326\001\n\016ApproveRollout\022-.google.cloud.de" - + "ploy.v1.ApproveRolloutRequest\032..google.c" - + "loud.deploy.v1.ApproveRolloutResponse\"e\202" - + "\323\344\223\002X\"S/v1/{name=projects/*/locations/*/" - + "deliveryPipelines/*/releases/*/rollouts/" - + "*}:approve:\001*\332A\004name\022\307\001\n\014ListRollouts\022+." - + "google.cloud.deploy.v1.ListRolloutsReque" - + "st\032,.google.cloud.deploy.v1.ListRollouts" - + "Response\"\\\202\323\344\223\002M\022K/v1/{parent=projects/*" - + "/locations/*/deliveryPipelines/*/release" - + "s/*}/rollouts\332A\006parent\022\264\001\n\nGetRollout\022)." - + "google.cloud.deploy.v1.GetRolloutRequest" - + "\032\037.google.cloud.deploy.v1.Rollout\"Z\202\323\344\223\002" - + "M\022K/v1/{name=projects/*/locations/*/deli" - + "veryPipelines/*/releases/*/rollouts/*}\332A" - + "\004name\022\366\001\n\rCreateRollout\022,.google.cloud.d" - + "eploy.v1.CreateRolloutRequest\032\035.google.l" - + "ongrunning.Operation\"\227\001\202\323\344\223\002V\"K/v1/{pare" - + "nt=projects/*/locations/*/deliveryPipeli" - + "nes/*/releases/*}/rollouts:\007rollout\332A\031pa" - + "rent,rollout,rollout_id\312A\034\n\007Rollout\022\021Ope" - + "rationMetadata\022\216\001\n\tGetConfig\022(.google.cl" - + "oud.deploy.v1.GetConfigRequest\032\036.google." - + "cloud.deploy.v1.Config\"7\202\323\344\223\002*\022(/v1/{nam" - + "e=projects/*/locations/*/config}\332A\004name\032" - + "N\312A\032clouddeploy.googleapis.com\322A.https:/" - + "/www.googleapis.com/auth/cloud-platformB" - + "\200\004\n\032com.google.cloud.deploy.v1B\020CloudDep" - + "loyProtoP\001Zprojects/{projec" - + "t}/locations/{location}/operations/{oper" - + "ation}\352Ai\n$cloudbuild.googleapis.com/Wor" - + "kerPool\022Aprojects/{project}/locations/{l" - + "ocation}/workerPools/{worker_pool}b\006prot" - + "o3" + + "apis.com/Build\022\014\n\004etag\030\020 \001(\t\022O\n\024deploy_f" + + "ailure_cause\030\023 \001(\0162,.google.cloud.deploy" + + ".v1.Rollout.FailureCauseB\003\340A\003\0322\n\020Annotat" + + "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\"{\n\rApprovalState\022\036\n\032APPROVAL_ST" + + "ATE_UNSPECIFIED\020\000\022\022\n\016NEEDS_APPROVAL\020\001\022\032\n" + + "\026DOES_NOT_NEED_APPROVAL\020\002\022\014\n\010APPROVED\020\003\022" + + "\014\n\010REJECTED\020\004\"\231\001\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\r\n\tSUCCEEDED\020\001\022\n\n\006FAILED\020\002\022\017\n\013IN_" + + "PROGRESS\020\003\022\024\n\020PENDING_APPROVAL\020\004\022\025\n\021APPR" + + "OVAL_REJECTED\020\005\022\013\n\007PENDING\020\006\022\023\n\017PENDING_" + + "RELEASE\020\007\"\213\001\n\014FailureCause\022\035\n\031FAILURE_CA" + + "USE_UNSPECIFIED\020\000\022\033\n\027CLOUD_BUILD_UNAVAIL" + + "ABLE\020\001\022\024\n\020EXECUTION_FAILED\020\002\022\025\n\021DEADLINE" + + "_EXCEEDED\020\003\022\022\n\016RELEASE_FAILED\020\004:\235\001\352A\231\001\n\"" + + "clouddeploy.googleapis.com/Rollout\022sproj" + + "ects/{project}/locations/{location}/deli" + + "veryPipelines/{delivery_pipeline}/releas" + + "es/{release}/rollouts/{rollout}\"\256\001\n\023List" + + "RolloutsRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\n" + + "\"clouddeploy.googleapis.com/Release\022\026\n\tp" + + "age_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB" + + "\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 " + + "\001(\tB\003\340A\001\"w\n\024ListRolloutsResponse\0221\n\010roll" + + "outs\030\001 \003(\0132\037.google.cloud.deploy.v1.Roll" + + "out\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreacha" + + "ble\030\003 \003(\t\"M\n\021GetRolloutRequest\0228\n\004name\030\001" + + " \001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis.com" + + "/Rollout\"\327\001\n\024CreateRolloutRequest\022:\n\006par" + + "ent\030\001 \001(\tB*\340A\002\372A$\n\"clouddeploy.googleapi" + + "s.com/Release\022\027\n\nrollout_id\030\002 \001(\tB\003\340A\002\0225" + + "\n\007rollout\030\003 \001(\0132\037.google.cloud.deploy.v1" + + ".RolloutB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032" + + "\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\200\002\n\021Operation" + + "Metadata\0224\n\013create_time\030\001 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006tar" + + "get\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016sta" + + "tus_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_canc" + + "ellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\t" + + "B\003\340A\003\"h\n\025ApproveRolloutRequest\0228\n\004name\030\001" + + " \001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis.com" + + "/Rollout\022\025\n\010approved\030\002 \001(\010B\003\340A\002\"\030\n\026Appro" + + "veRolloutResponse\"\337\001\n\006Config\022\014\n\004name\030\001 \001" + + "(\t\022H\n\022supported_versions\030\002 \003(\0132\'.google." + + "cloud.deploy.v1.SkaffoldVersionB\003\340A\003\022%\n\030" + + "default_skaffold_version\030\003 \001(\tB\003\340A\003:V\352AS" + + "\n!clouddeploy.googleapis.com/Config\022.pro" + + "jects/{project}/locations/{location}/con" + + "fig\"O\n\017SkaffoldVersion\022\017\n\007version\030\001 \001(\t\022" + + "+\n\020support_end_date\030\002 \001(\0132\021.google.type." + + "Date\"K\n\020GetConfigRequest\0227\n\004name\030\001 \001(\tB)" + + "\340A\002\372A#\n!clouddeploy.googleapis.com/Confi" + + "g2\352\035\n\013CloudDeploy\022\314\001\n\025ListDeliveryPipeli" + + "nes\0224.google.cloud.deploy.v1.ListDeliver" + + "yPipelinesRequest\0325.google.cloud.deploy." + + "v1.ListDeliveryPipelinesResponse\"F\202\323\344\223\0027" + + "\0225/v1/{parent=projects/*/locations/*}/de" + + "liveryPipelines\332A\006parent\022\271\001\n\023GetDelivery" + + "Pipeline\0222.google.cloud.deploy.v1.GetDel" + + "iveryPipelineRequest\032(.google.cloud.depl" + + "oy.v1.DeliveryPipeline\"D\202\323\344\223\0027\0225/v1/{nam" + + "e=projects/*/locations/*/deliveryPipelin" + + "es/*}\332A\004name\022\231\002\n\026CreateDeliveryPipeline\022" + + "5.google.cloud.deploy.v1.CreateDeliveryP" + + "ipelineRequest\032\035.google.longrunning.Oper" + + "ation\"\250\001\202\323\344\223\002J\"5/v1/{parent=projects/*/l" + + "ocations/*}/deliveryPipelines:\021delivery_" + + "pipeline\332A-parent,delivery_pipeline,deli" + + "very_pipeline_id\312A%\n\020DeliveryPipeline\022\021O" + + "perationMetadata\022\233\002\n\026UpdateDeliveryPipel" + + "ine\0225.google.cloud.deploy.v1.UpdateDeliv" + + "eryPipelineRequest\032\035.google.longrunning." + + "Operation\"\252\001\202\323\344\223\002\\2G/v1/{delivery_pipeli" + + "ne.name=projects/*/locations/*/deliveryP" + + "ipelines/*}:\021delivery_pipeline\332A\035deliver" + + "y_pipeline,update_mask\312A%\n\020DeliveryPipel" + + "ine\022\021OperationMetadata\022\341\001\n\026DeleteDeliver" + + "yPipeline\0225.google.cloud.deploy.v1.Delet" + + "eDeliveryPipelineRequest\032\035.google.longru" + + "nning.Operation\"q\202\323\344\223\0027*5/v1/{name=proje" + + "cts/*/locations/*/deliveryPipelines/*}\332A" + + "\004name\312A*\n\025google.protobuf.Empty\022\021Operati" + + "onMetadata\022\244\001\n\013ListTargets\022*.google.clou" + + "d.deploy.v1.ListTargetsRequest\032+.google." + + "cloud.deploy.v1.ListTargetsResponse\"<\202\323\344" + + "\223\002-\022+/v1/{parent=projects/*/locations/*}" + + "/targets\332A\006parent\022\221\001\n\tGetTarget\022(.google" + + ".cloud.deploy.v1.GetTargetRequest\032\036.goog" + + "le.cloud.deploy.v1.Target\":\202\323\344\223\002-\022+/v1/{" + + "name=projects/*/locations/*/targets/*}\332A" + + "\004name\022\317\001\n\014CreateTarget\022+.google.cloud.de" + + "ploy.v1.CreateTargetRequest\032\035.google.lon" + + "grunning.Operation\"s\202\323\344\223\0025\"+/v1/{parent=" + + "projects/*/locations/*}/targets:\006target\332" + + "A\027parent,target,target_id\312A\033\n\006Target\022\021Op" + + "erationMetadata\022\321\001\n\014UpdateTarget\022+.googl" + + "e.cloud.deploy.v1.UpdateTargetRequest\032\035." + + "google.longrunning.Operation\"u\202\323\344\223\002<22/v" + + "1/{target.name=projects/*/locations/*/ta" + + "rgets/*}:\006target\332A\022target,update_mask\312A\033" + + "\n\006Target\022\021OperationMetadata\022\303\001\n\014DeleteTa" + + "rget\022+.google.cloud.deploy.v1.DeleteTarg" + + "etRequest\032\035.google.longrunning.Operation" + + "\"g\202\323\344\223\002-*+/v1/{name=projects/*/locations" + + "/*/targets/*}\332A\004name\312A*\n\025google.protobuf" + + ".Empty\022\021OperationMetadata\022\274\001\n\014ListReleas" + + "es\022+.google.cloud.deploy.v1.ListReleases" + + "Request\032,.google.cloud.deploy.v1.ListRel" + + "easesResponse\"Q\202\323\344\223\002B\022@/v1/{parent=proje" + + "cts/*/locations/*/deliveryPipelines/*}/r" + + "eleases\332A\006parent\022\251\001\n\nGetRelease\022).google" + + ".cloud.deploy.v1.GetReleaseRequest\032\037.goo" + + "gle.cloud.deploy.v1.Release\"O\202\323\344\223\002B\022@/v1" + + "/{name=projects/*/locations/*/deliveryPi" + + "pelines/*/releases/*}\332A\004name\022\353\001\n\rCreateR" + + "elease\022,.google.cloud.deploy.v1.CreateRe" + + "leaseRequest\032\035.google.longrunning.Operat" + + "ion\"\214\001\202\323\344\223\002K\"@/v1/{parent=projects/*/loc" + + "ations/*/deliveryPipelines/*}/releases:\007" + + "release\332A\031parent,release,release_id\312A\034\n\007" + + "Release\022\021OperationMetadata\022\326\001\n\016ApproveRo" + + "llout\022-.google.cloud.deploy.v1.ApproveRo" + + "lloutRequest\032..google.cloud.deploy.v1.Ap" + + "proveRolloutResponse\"e\202\323\344\223\002X\"S/v1/{name=" + + "projects/*/locations/*/deliveryPipelines" + + "/*/releases/*/rollouts/*}:approve:\001*\332A\004n" + + "ame\022\307\001\n\014ListRollouts\022+.google.cloud.depl" + + "oy.v1.ListRolloutsRequest\032,.google.cloud" + + ".deploy.v1.ListRolloutsResponse\"\\\202\323\344\223\002M\022" + + "K/v1/{parent=projects/*/locations/*/deli" + + "veryPipelines/*/releases/*}/rollouts\332A\006p" + + "arent\022\264\001\n\nGetRollout\022).google.cloud.depl" + + "oy.v1.GetRolloutRequest\032\037.google.cloud.d" + + "eploy.v1.Rollout\"Z\202\323\344\223\002M\022K/v1/{name=proj" + + "ects/*/locations/*/deliveryPipelines/*/r" + + "eleases/*/rollouts/*}\332A\004name\022\366\001\n\rCreateR" + + "ollout\022,.google.cloud.deploy.v1.CreateRo" + + "lloutRequest\032\035.google.longrunning.Operat" + + "ion\"\227\001\202\323\344\223\002V\"K/v1/{parent=projects/*/loc" + + "ations/*/deliveryPipelines/*/releases/*}" + + "/rollouts:\007rollout\332A\031parent,rollout,roll" + + "out_id\312A\034\n\007Rollout\022\021OperationMetadata\022\216\001" + + "\n\tGetConfig\022(.google.cloud.deploy.v1.Get" + + "ConfigRequest\032\036.google.cloud.deploy.v1.C" + + "onfig\"7\202\323\344\223\002*\022(/v1/{name=projects/*/loca" + + "tions/*/config}\332A\004name\032N\312A\032clouddeploy.g" + + "oogleapis.com\322A.https://www.googleapis.c" + + "om/auth/cloud-platformB\347\004\n\032com.google.cl" + + "oud.deploy.v1B\020CloudDeployProtoP\001Z projects/{project}/locations/{loc" + + "ation}/operations/{operation}\352Ai\n$cloudb" + + "uild.googleapis.com/WorkerPool\022Aprojects" + + "/{project}/locations/{location}/workerPo" + + "ols/{worker_pool}\352Ad\n gkehub.googleapis." + + "com/Membership\022@projects/{project}/locat" + + "ions/{location}/memberships/{membership}" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -762,6 +786,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "UpdateTime", "Gke", + "AnthosCluster", "Etag", "ExecutionConfigs", "DeploymentTarget", @@ -788,7 +813,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ExecutionConfig_descriptor, new java.lang.String[] { - "Usages", "DefaultPool", "PrivatePool", "ExecutionEnvironment", + "Usages", + "DefaultPool", + "PrivatePool", + "WorkerPool", + "ServiceAccount", + "ArtifactStorage", + "ExecutionEnvironment", }); internal_static_google_cloud_deploy_v1_DefaultPool_descriptor = getDescriptor().getMessageTypes().get(14); @@ -812,10 +843,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_GkeCluster_descriptor, new java.lang.String[] { - "Cluster", + "Cluster", "InternalIp", }); - internal_static_google_cloud_deploy_v1_ListTargetsRequest_descriptor = + internal_static_google_cloud_deploy_v1_AnthosCluster_descriptor = getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_deploy_v1_AnthosCluster_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_AnthosCluster_descriptor, + new java.lang.String[] { + "Membership", + }); + internal_static_google_cloud_deploy_v1_ListTargetsRequest_descriptor = + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_deploy_v1_ListTargetsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListTargetsRequest_descriptor, @@ -823,7 +862,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_deploy_v1_ListTargetsResponse_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_deploy_v1_ListTargetsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListTargetsResponse_descriptor, @@ -831,7 +870,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Targets", "NextPageToken", "Unreachable", }); internal_static_google_cloud_deploy_v1_GetTargetRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_deploy_v1_GetTargetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_GetTargetRequest_descriptor, @@ -839,7 +878,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_deploy_v1_CreateTargetRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_deploy_v1_CreateTargetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_CreateTargetRequest_descriptor, @@ -847,7 +886,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "TargetId", "Target", "RequestId", "ValidateOnly", }); internal_static_google_cloud_deploy_v1_UpdateTargetRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_deploy_v1_UpdateTargetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_UpdateTargetRequest_descriptor, @@ -855,7 +894,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Target", "RequestId", "AllowMissing", "ValidateOnly", }); internal_static_google_cloud_deploy_v1_DeleteTargetRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_deploy_v1_DeleteTargetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_DeleteTargetRequest_descriptor, @@ -863,7 +902,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "AllowMissing", "ValidateOnly", "Etag", }); internal_static_google_cloud_deploy_v1_Release_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_deploy_v1_Release_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_Release_descriptor, @@ -893,7 +932,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_Release_TargetRender_descriptor, new java.lang.String[] { - "RenderingBuild", "RenderingState", + "RenderingBuild", "RenderingState", "FailureCause", }); internal_static_google_cloud_deploy_v1_Release_AnnotationsEntry_descriptor = internal_static_google_cloud_deploy_v1_Release_descriptor.getNestedTypes().get(1); @@ -928,7 +967,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_deploy_v1_BuildArtifact_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_deploy_v1_BuildArtifact_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_BuildArtifact_descriptor, @@ -936,7 +975,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Image", "Tag", }); internal_static_google_cloud_deploy_v1_TargetArtifact_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_deploy_v1_TargetArtifact_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_TargetArtifact_descriptor, @@ -944,7 +983,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ArtifactUri", "SkaffoldConfigPath", "ManifestPath", "Uri", }); internal_static_google_cloud_deploy_v1_ListReleasesRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_deploy_v1_ListReleasesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListReleasesRequest_descriptor, @@ -952,7 +991,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_deploy_v1_ListReleasesResponse_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_deploy_v1_ListReleasesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListReleasesResponse_descriptor, @@ -960,7 +999,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Releases", "NextPageToken", "Unreachable", }); internal_static_google_cloud_deploy_v1_GetReleaseRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_deploy_v1_GetReleaseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_GetReleaseRequest_descriptor, @@ -968,7 +1007,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_deploy_v1_CreateReleaseRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_deploy_v1_CreateReleaseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_CreateReleaseRequest_descriptor, @@ -976,7 +1015,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ReleaseId", "Release", "RequestId", "ValidateOnly", }); internal_static_google_cloud_deploy_v1_Rollout_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_deploy_v1_Rollout_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_Rollout_descriptor, @@ -997,6 +1036,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FailureReason", "DeployingBuild", "Etag", + "DeployFailureCause", }); internal_static_google_cloud_deploy_v1_Rollout_AnnotationsEntry_descriptor = internal_static_google_cloud_deploy_v1_Rollout_descriptor.getNestedTypes().get(0); @@ -1015,7 +1055,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_deploy_v1_ListRolloutsRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_deploy_v1_ListRolloutsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListRolloutsRequest_descriptor, @@ -1023,7 +1063,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_deploy_v1_ListRolloutsResponse_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_deploy_v1_ListRolloutsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListRolloutsResponse_descriptor, @@ -1031,7 +1071,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Rollouts", "NextPageToken", "Unreachable", }); internal_static_google_cloud_deploy_v1_GetRolloutRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_deploy_v1_GetRolloutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_GetRolloutRequest_descriptor, @@ -1039,7 +1079,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_deploy_v1_CreateRolloutRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_deploy_v1_CreateRolloutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_CreateRolloutRequest_descriptor, @@ -1047,7 +1087,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "RolloutId", "Rollout", "RequestId", "ValidateOnly", }); internal_static_google_cloud_deploy_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_deploy_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_OperationMetadata_descriptor, @@ -1061,7 +1101,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiVersion", }); internal_static_google_cloud_deploy_v1_ApproveRolloutRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_deploy_v1_ApproveRolloutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ApproveRolloutRequest_descriptor, @@ -1069,13 +1109,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Approved", }); internal_static_google_cloud_deploy_v1_ApproveRolloutResponse_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_deploy_v1_ApproveRolloutResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ApproveRolloutResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_deploy_v1_Config_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_deploy_v1_Config_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_Config_descriptor, @@ -1083,7 +1123,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "SupportedVersions", "DefaultSkaffoldVersion", }); internal_static_google_cloud_deploy_v1_SkaffoldVersion_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_deploy_v1_SkaffoldVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_SkaffoldVersion_descriptor, @@ -1091,7 +1131,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Version", "SupportEndDate", }); internal_static_google_cloud_deploy_v1_GetConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_deploy_v1_GetConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_GetConfigRequest_descriptor, diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Config.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Config.java index 3bf4426..c54eab3 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Config.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Config.java @@ -110,6 +110,8 @@ private Config( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ConfigName.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ConfigName.java index 6b1bc51..1bd0a63 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ConfigName.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ConfigName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateDeliveryPipelineRequest.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateDeliveryPipelineRequest.java index ab3fd7a..f0f2062 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateDeliveryPipelineRequest.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateDeliveryPipelineRequest.java @@ -125,6 +125,8 @@ private CreateDeliveryPipelineRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateReleaseRequest.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateReleaseRequest.java index 399c778..b08053d 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateReleaseRequest.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateReleaseRequest.java @@ -124,6 +124,8 @@ private CreateReleaseRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateRolloutRequest.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateRolloutRequest.java index 6e6d475..2c8b837 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateRolloutRequest.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateRolloutRequest.java @@ -124,6 +124,8 @@ private CreateRolloutRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateTargetRequest.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateTargetRequest.java index 96f415d..9ea49a8 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateTargetRequest.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateTargetRequest.java @@ -124,6 +124,8 @@ private CreateTargetRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DefaultPool.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DefaultPool.java index 1b09041..26b3feb 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DefaultPool.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DefaultPool.java @@ -96,6 +96,8 @@ private DefaultPool( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteDeliveryPipelineRequest.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteDeliveryPipelineRequest.java index 4ee2205..fc2e952 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteDeliveryPipelineRequest.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteDeliveryPipelineRequest.java @@ -119,6 +119,8 @@ private DeleteDeliveryPipelineRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteTargetRequest.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteTargetRequest.java index 574b075..7cd326f 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteTargetRequest.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteTargetRequest.java @@ -114,6 +114,8 @@ private DeleteTargetRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipeline.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipeline.java index e547eef..30cdcf9 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipeline.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipeline.java @@ -205,6 +205,8 @@ private DeliveryPipeline( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -475,7 +477,7 @@ public int getAnnotationsCount() { @java.lang.Override public boolean containsAnnotations(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } @@ -517,7 +519,7 @@ public java.util.Map getAnnotationsMap() { public java.lang.String getAnnotationsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -537,7 +539,7 @@ public java.lang.String getAnnotationsOrDefault( @java.lang.Override public java.lang.String getAnnotationsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { @@ -577,10 +579,14 @@ public int getLabelsCount() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -588,7 +594,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -604,10 +610,14 @@ public java.util.MapgetLabels() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -622,10 +632,14 @@ public java.util.MapgetLabelsMap() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -633,7 +647,7 @@ public java.util.MapgetLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -644,10 +658,14 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -655,7 +673,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Mapmap = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1867,7 +1885,7 @@ public int getAnnotationsCount() { @java.lang.Override public boolean containsAnnotations(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } @@ -1909,7 +1927,7 @@ public java.util.Map getAnnotationsMap() { public java.lang.String getAnnotationsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1929,7 +1947,7 @@ public java.lang.String getAnnotationsOrDefault( @java.lang.Override public java.lang.String getAnnotationsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { @@ -1956,7 +1974,7 @@ public Builder clearAnnotations() { */ public Builder removeAnnotations(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableAnnotations().getMutableMap().remove(key); return this; @@ -1980,11 +1998,12 @@ public java.util.Map getMutableAnnotations() */ public Builder putAnnotations(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableAnnotations().getMutableMap().put(key, value); return this; } @@ -2036,10 +2055,14 @@ public int getLabelsCount() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -2047,7 +2070,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2063,10 +2086,14 @@ public java.util.MapgetLabels() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -2081,10 +2108,14 @@ public java.util.MapgetLabelsMap() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -2093,7 +2124,7 @@ public java.util.MapgetLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2104,10 +2135,14 @@ public java.lang.String getLabelsOrDefault( * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -2115,7 +2150,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Mapmap = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2134,17 +2169,21 @@ public Builder clearLabels() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
*/ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2160,21 +2199,26 @@ public java.util.MapgetMutableLabels() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
*/ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } @@ -2184,10 +2228,14 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { ** Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -2716,8 +2764,9 @@ public Builder mergeSerialPipeline(com.google.cloud.deploy.v1.SerialPipeline val } else { if (pipelineCase_ == 8) { serialPipelineBuilder_.mergeFrom(value); + } else { + serialPipelineBuilder_.setMessage(value); } - serialPipelineBuilder_.setMessage(value); } pipelineCase_ = 8; return this; diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineName.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineName.java index e7a9236..c936f4f 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineName.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineNotificationEvent.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineNotificationEvent.java new file mode 100644 index 0000000..2e617b9 --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineNotificationEvent.java @@ -0,0 +1,974 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/deliverypipeline_notification_payload.proto + +package com.google.cloud.deploy.v1; + +/** + * + * + *+ * Payload proto for "clouddeploy.googleapis.com/deliverypipeline_notification" + * Platform Log event that describes the failure to send delivery pipeline + * status change Pub/Sub notification. + *+ * + * Protobuf type {@code google.cloud.deploy.v1.DeliveryPipelineNotificationEvent} + */ +public final class DeliveryPipelineNotificationEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.DeliveryPipelineNotificationEvent) + DeliveryPipelineNotificationEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeliveryPipelineNotificationEvent.newBuilder() to construct. + private DeliveryPipelineNotificationEvent( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DeliveryPipelineNotificationEvent() { + message_ = ""; + deliveryPipeline_ = ""; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeliveryPipelineNotificationEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeliveryPipelineNotificationEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + deliveryPipeline_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.DeliveryPipelineNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_DeliveryPipelineNotificationEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.DeliveryPipelineNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_DeliveryPipelineNotificationEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent.class, + com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent.Builder.class); + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object message_; + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DELIVERY_PIPELINE_FIELD_NUMBER = 2; + private volatile java.lang.Object deliveryPipeline_; + /** + * + * + *+ * The name of the `Delivery Pipeline`. + *+ * + *string delivery_pipeline = 2;
+ * + * @return The deliveryPipeline. + */ + @java.lang.Override + public java.lang.String getDeliveryPipeline() { + java.lang.Object ref = deliveryPipeline_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deliveryPipeline_ = s; + return s; + } + } + /** + * + * + *+ * The name of the `Delivery Pipeline`. + *+ * + *string delivery_pipeline = 2;
+ * + * @return The bytes for deliveryPipeline. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeliveryPipelineBytes() { + java.lang.Object ref = deliveryPipeline_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deliveryPipeline_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 3; + private int type_; + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.Type getType() { + @SuppressWarnings("deprecation") + com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.valueOf(type_); + return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deliveryPipeline_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deliveryPipeline_); + } + if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deliveryPipeline_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deliveryPipeline_); + } + if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent)) { + return super.equals(obj); + } + com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent other = + (com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent) obj; + + if (!getMessage().equals(other.getMessage())) return false; + if (!getDeliveryPipeline().equals(other.getDeliveryPipeline())) return false; + if (type_ != other.type_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + DELIVERY_PIPELINE_FIELD_NUMBER; + hash = (53 * hash) + getDeliveryPipeline().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *+ * Payload proto for "clouddeploy.googleapis.com/deliverypipeline_notification" + * Platform Log event that describes the failure to send delivery pipeline + * status change Pub/Sub notification. + *+ * + * Protobuf type {@code google.cloud.deploy.v1.DeliveryPipelineNotificationEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.DeliveryPipelineNotificationEvent) + com.google.cloud.deploy.v1.DeliveryPipelineNotificationEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.DeliveryPipelineNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_DeliveryPipelineNotificationEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.DeliveryPipelineNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_DeliveryPipelineNotificationEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent.class, + com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent.Builder.class); + } + + // Construct using com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + message_ = ""; + + deliveryPipeline_ = ""; + + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.DeliveryPipelineNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_DeliveryPipelineNotificationEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent + getDefaultInstanceForType() { + return com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent build() { + com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent buildPartial() { + com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent result = + new com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent(this); + result.message_ = message_; + result.deliveryPipeline_ = deliveryPipeline_; + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent) { + return mergeFrom((com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent other) { + if (other + == com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent.getDefaultInstance()) + return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (!other.getDeliveryPipeline().isEmpty()) { + deliveryPipeline_ = other.deliveryPipeline_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object message_ = ""; + /** + * + * + * + * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return This builder for chaining. + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + private java.lang.Object deliveryPipeline_ = ""; + /** + * + * + *+ * The name of the `Delivery Pipeline`. + *+ * + *string delivery_pipeline = 2;
+ * + * @return The deliveryPipeline. + */ + public java.lang.String getDeliveryPipeline() { + java.lang.Object ref = deliveryPipeline_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deliveryPipeline_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * The name of the `Delivery Pipeline`. + *+ * + *string delivery_pipeline = 2;
+ * + * @return The bytes for deliveryPipeline. + */ + public com.google.protobuf.ByteString getDeliveryPipelineBytes() { + java.lang.Object ref = deliveryPipeline_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deliveryPipeline_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * The name of the `Delivery Pipeline`. + *+ * + *string delivery_pipeline = 2;
+ * + * @param value The deliveryPipeline to set. + * @return This builder for chaining. + */ + public Builder setDeliveryPipeline(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deliveryPipeline_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * The name of the `Delivery Pipeline`. + *+ * + *string delivery_pipeline = 2;
+ * + * @return This builder for chaining. + */ + public Builder clearDeliveryPipeline() { + + deliveryPipeline_ = getDefaultInstance().getDeliveryPipeline(); + onChanged(); + return this; + } + /** + * + * + *+ * The name of the `Delivery Pipeline`. + *+ * + *string delivery_pipeline = 2;
+ * + * @param value The bytes for deliveryPipeline to set. + * @return This builder for chaining. + */ + public Builder setDeliveryPipelineBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deliveryPipeline_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.Type getType() { + @SuppressWarnings("deprecation") + com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.valueOf(type_); + return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; + } + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.deploy.v1.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.DeliveryPipelineNotificationEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.DeliveryPipelineNotificationEvent) + private static final com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent(); + } + + public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public DeliveryPipelineNotificationEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeliveryPipelineNotificationEvent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineNotificationEventOrBuilder.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineNotificationEventOrBuilder.java new file mode 100644 index 0000000..53f3b3b --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineNotificationEventOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/deliverypipeline_notification_payload.proto + +package com.google.cloud.deploy.v1; + +public interface DeliveryPipelineNotificationEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.DeliveryPipelineNotificationEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The message. + */ + java.lang.String getMessage(); + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *+ * The name of the `Delivery Pipeline`. + *+ * + *string delivery_pipeline = 2;
+ * + * @return The deliveryPipeline. + */ + java.lang.String getDeliveryPipeline(); + /** + * + * + *+ * The name of the `Delivery Pipeline`. + *+ * + *string delivery_pipeline = 2;
+ * + * @return The bytes for deliveryPipeline. + */ + com.google.protobuf.ByteString getDeliveryPipelineBytes(); + + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @return The type. + */ + com.google.cloud.deploy.v1.Type getType(); +} diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineNotificationPayloadProto.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineNotificationPayloadProto.java new file mode 100644 index 0000000..8774e40 --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineNotificationPayloadProto.java @@ -0,0 +1,73 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/deliverypipeline_notification_payload.proto + +package com.google.cloud.deploy.v1; + +public final class DeliveryPipelineNotificationPayloadProto { + private DeliveryPipelineNotificationPayloadProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_DeliveryPipelineNotificationEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_DeliveryPipelineNotificationEvent_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nBgoogle/cloud/deploy/v1/deliverypipelin" + + "e_notification_payload.proto\022\026google.clo" + + "ud.deploy.v1\032&google/cloud/deploy/v1/log" + + "_enums.proto\"{\n!DeliveryPipelineNotifica" + + "tionEvent\022\017\n\007message\030\001 \001(\t\022\031\n\021delivery_p" + + "ipeline\030\002 \001(\t\022*\n\004type\030\003 \001(\0162\034.google.clo" + + "ud.deploy.v1.TypeB\206\001\n\032com.google.cloud.d" + + "eploy.v1B(DeliveryPipelineNotificationPa" + + "yloadProtoP\001Zmap<string, string> annotations = 4; */ - java.lang.String getAnnotationsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * @@ -175,10 +180,14 @@ public interface DeliveryPipelineOrBuilder * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -190,10 +199,14 @@ public interface DeliveryPipelineOrBuilder ** Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -208,10 +221,14 @@ public interface DeliveryPipelineOrBuilder ** Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -223,25 +240,38 @@ public interface DeliveryPipelineOrBuilder ** Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
*/ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * ** Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ExecutionConfig.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ExecutionConfig.java index cffe83b..bf00206 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ExecutionConfig.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ExecutionConfig.java @@ -39,6 +39,9 @@ private ExecutionConfig(com.google.protobuf.GeneratedMessageV3.Builder> builde private ExecutionConfig() { usages_ = java.util.Collections.emptyList(); + workerPool_ = ""; + serviceAccount_ = ""; + artifactStorage_ = ""; } @java.lang.Override @@ -132,6 +135,27 @@ private ExecutionConfig( executionEnvironmentCase_ = 3; break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + workerPool_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + serviceAccount_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + artifactStorage_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -143,6 +167,8 @@ private ExecutionConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -603,6 +629,173 @@ public com.google.cloud.deploy.v1.PrivatePoolOrBuilder getPrivatePoolOrBuilder() return com.google.cloud.deploy.v1.PrivatePool.getDefaultInstance(); } + public static final int WORKER_POOL_FIELD_NUMBER = 4; + private volatile java.lang.Object workerPool_; + /** + * + * + *+ * Optional. The resource name of the `WorkerPool`, with the format + * `projects/{project}/locations/{location}/workerPools/{worker_pool}`. + * If this optional field is unspecified, the default Cloud Build pool will be + * used. + *+ * + *+ * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * + * @return The workerPool. + */ + @java.lang.Override + public java.lang.String getWorkerPool() { + java.lang.Object ref = workerPool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workerPool_ = s; + return s; + } + } + /** + * + * + *+ * Optional. The resource name of the `WorkerPool`, with the format + * `projects/{project}/locations/{location}/workerPools/{worker_pool}`. + * If this optional field is unspecified, the default Cloud Build pool will be + * used. + *+ * + *+ * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * + * @return The bytes for workerPool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkerPoolBytes() { + java.lang.Object ref = workerPool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workerPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 5; + private volatile java.lang.Object serviceAccount_; + /** + * + * + *+ * Optional. Google service account to use for execution. If unspecified, + * the project execution service account + * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used. + *+ * + *string service_account = 5 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + /** + * + * + *+ * Optional. Google service account to use for execution. If unspecified, + * the project execution service account + * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used. + *+ * + *string service_account = 5 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARTIFACT_STORAGE_FIELD_NUMBER = 6; + private volatile java.lang.Object artifactStorage_; + /** + * + * + *+ * Optional. Cloud Storage location in which to store execution outputs. This can + * either be a bucket ("gs://my-bucket") or a path within a bucket + * ("gs://my-bucket/my-dir"). + * If unspecified, a default bucket located in the same region will be used. + *+ * + *string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return The artifactStorage. + */ + @java.lang.Override + public java.lang.String getArtifactStorage() { + java.lang.Object ref = artifactStorage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactStorage_ = s; + return s; + } + } + /** + * + * + *+ * Optional. Cloud Storage location in which to store execution outputs. This can + * either be a bucket ("gs://my-bucket") or a path within a bucket + * ("gs://my-bucket/my-dir"). + * If unspecified, a default bucket located in the same region will be used. + *+ * + *string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return The bytes for artifactStorage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArtifactStorageBytes() { + java.lang.Object ref = artifactStorage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifactStorage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -631,6 +824,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (executionEnvironmentCase_ == 3) { output.writeMessage(3, (com.google.cloud.deploy.v1.PrivatePool) executionEnvironment_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workerPool_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, workerPool_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, serviceAccount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactStorage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, artifactStorage_); + } unknownFields.writeTo(output); } @@ -662,6 +864,15 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.cloud.deploy.v1.PrivatePool) executionEnvironment_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workerPool_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, workerPool_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceAccount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactStorage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, artifactStorage_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -679,6 +890,9 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.deploy.v1.ExecutionConfig) obj; if (!usages_.equals(other.usages_)) return false; + if (!getWorkerPool().equals(other.getWorkerPool())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getArtifactStorage().equals(other.getArtifactStorage())) return false; if (!getExecutionEnvironmentCase().equals(other.getExecutionEnvironmentCase())) return false; switch (executionEnvironmentCase_) { case 2: @@ -705,6 +919,12 @@ public int hashCode() { hash = (37 * hash) + USAGES_FIELD_NUMBER; hash = (53 * hash) + usages_.hashCode(); } + hash = (37 * hash) + WORKER_POOL_FIELD_NUMBER; + hash = (53 * hash) + getWorkerPool().hashCode(); + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + hash = (37 * hash) + ARTIFACT_STORAGE_FIELD_NUMBER; + hash = (53 * hash) + getArtifactStorage().hashCode(); switch (executionEnvironmentCase_) { case 2: hash = (37 * hash) + DEFAULT_POOL_FIELD_NUMBER; @@ -864,6 +1084,12 @@ public Builder clear() { super.clear(); usages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); + workerPool_ = ""; + + serviceAccount_ = ""; + + artifactStorage_ = ""; + executionEnvironmentCase_ = 0; executionEnvironment_ = null; return this; @@ -913,6 +1139,9 @@ public com.google.cloud.deploy.v1.ExecutionConfig buildPartial() { result.executionEnvironment_ = privatePoolBuilder_.build(); } } + result.workerPool_ = workerPool_; + result.serviceAccount_ = serviceAccount_; + result.artifactStorage_ = artifactStorage_; result.executionEnvironmentCase_ = executionEnvironmentCase_; onBuilt(); return result; @@ -973,6 +1202,18 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.ExecutionConfig other) { } onChanged(); } + if (!other.getWorkerPool().isEmpty()) { + workerPool_ = other.workerPool_; + onChanged(); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + onChanged(); + } + if (!other.getArtifactStorage().isEmpty()) { + artifactStorage_ = other.artifactStorage_; + onChanged(); + } switch (other.getExecutionEnvironmentCase()) { case DEFAULT_POOL: { @@ -1407,8 +1648,9 @@ public Builder mergeDefaultPool(com.google.cloud.deploy.v1.DefaultPool value) { } else { if (executionEnvironmentCase_ == 2) { defaultPoolBuilder_.mergeFrom(value); + } else { + defaultPoolBuilder_.setMessage(value); } - defaultPoolBuilder_.setMessage(value); } executionEnvironmentCase_ = 2; return this; @@ -1634,8 +1876,9 @@ public Builder mergePrivatePool(com.google.cloud.deploy.v1.PrivatePool value) { } else { if (executionEnvironmentCase_ == 3) { privatePoolBuilder_.mergeFrom(value); + } else { + privatePoolBuilder_.setMessage(value); } - privatePoolBuilder_.setMessage(value); } executionEnvironmentCase_ = 3; return this; @@ -1739,6 +1982,374 @@ public com.google.cloud.deploy.v1.PrivatePoolOrBuilder getPrivatePoolOrBuilder() return privatePoolBuilder_; } + private java.lang.Object workerPool_ = ""; + /** + * + * + *+ * Optional. The resource name of the `WorkerPool`, with the format + * `projects/{project}/locations/{location}/workerPools/{worker_pool}`. + * If this optional field is unspecified, the default Cloud Build pool will be + * used. + *+ * + *+ * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * + * @return The workerPool. + */ + public java.lang.String getWorkerPool() { + java.lang.Object ref = workerPool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workerPool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * Optional. The resource name of the `WorkerPool`, with the format + * `projects/{project}/locations/{location}/workerPools/{worker_pool}`. + * If this optional field is unspecified, the default Cloud Build pool will be + * used. + *+ * + *+ * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * + * @return The bytes for workerPool. + */ + public com.google.protobuf.ByteString getWorkerPoolBytes() { + java.lang.Object ref = workerPool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workerPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * Optional. The resource name of the `WorkerPool`, with the format + * `projects/{project}/locations/{location}/workerPools/{worker_pool}`. + * If this optional field is unspecified, the default Cloud Build pool will be + * used. + *+ * + *+ * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * + * @param value The workerPool to set. + * @return This builder for chaining. + */ + public Builder setWorkerPool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workerPool_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * Optional. The resource name of the `WorkerPool`, with the format + * `projects/{project}/locations/{location}/workerPools/{worker_pool}`. + * If this optional field is unspecified, the default Cloud Build pool will be + * used. + *+ * + *+ * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * + * @return This builder for chaining. + */ + public Builder clearWorkerPool() { + + workerPool_ = getDefaultInstance().getWorkerPool(); + onChanged(); + return this; + } + /** + * + * + *+ * Optional. The resource name of the `WorkerPool`, with the format + * `projects/{project}/locations/{location}/workerPools/{worker_pool}`. + * If this optional field is unspecified, the default Cloud Build pool will be + * used. + *+ * + *+ * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * + * @param value The bytes for workerPool to set. + * @return This builder for chaining. + */ + public Builder setWorkerPoolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workerPool_ = value; + onChanged(); + return this; + } + + private java.lang.Object serviceAccount_ = ""; + /** + * + * + *+ * Optional. Google service account to use for execution. If unspecified, + * the project execution service account + * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used. + *+ * + *string service_account = 5 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * Optional. Google service account to use for execution. If unspecified, + * the project execution service account + * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used. + *+ * + *string service_account = 5 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * Optional. Google service account to use for execution. If unspecified, + * the project execution service account + * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used. + *+ * + *string service_account = 5 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccount_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * Optional. Google service account to use for execution. If unspecified, + * the project execution service account + * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used. + *+ * + *string service_account = 5 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + + serviceAccount_ = getDefaultInstance().getServiceAccount(); + onChanged(); + return this; + } + /** + * + * + *+ * Optional. Google service account to use for execution. If unspecified, + * the project execution service account + * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used. + *+ * + *string service_account = 5 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccount_ = value; + onChanged(); + return this; + } + + private java.lang.Object artifactStorage_ = ""; + /** + * + * + *+ * Optional. Cloud Storage location in which to store execution outputs. This can + * either be a bucket ("gs://my-bucket") or a path within a bucket + * ("gs://my-bucket/my-dir"). + * If unspecified, a default bucket located in the same region will be used. + *+ * + *string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return The artifactStorage. + */ + public java.lang.String getArtifactStorage() { + java.lang.Object ref = artifactStorage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactStorage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * Optional. Cloud Storage location in which to store execution outputs. This can + * either be a bucket ("gs://my-bucket") or a path within a bucket + * ("gs://my-bucket/my-dir"). + * If unspecified, a default bucket located in the same region will be used. + *+ * + *string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return The bytes for artifactStorage. + */ + public com.google.protobuf.ByteString getArtifactStorageBytes() { + java.lang.Object ref = artifactStorage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifactStorage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * Optional. Cloud Storage location in which to store execution outputs. This can + * either be a bucket ("gs://my-bucket") or a path within a bucket + * ("gs://my-bucket/my-dir"). + * If unspecified, a default bucket located in the same region will be used. + *+ * + *string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @param value The artifactStorage to set. + * @return This builder for chaining. + */ + public Builder setArtifactStorage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + artifactStorage_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * Optional. Cloud Storage location in which to store execution outputs. This can + * either be a bucket ("gs://my-bucket") or a path within a bucket + * ("gs://my-bucket/my-dir"). + * If unspecified, a default bucket located in the same region will be used. + *+ * + *string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return This builder for chaining. + */ + public Builder clearArtifactStorage() { + + artifactStorage_ = getDefaultInstance().getArtifactStorage(); + onChanged(); + return this; + } + /** + * + * + *+ * Optional. Cloud Storage location in which to store execution outputs. This can + * either be a bucket ("gs://my-bucket") or a path within a bucket + * ("gs://my-bucket/my-dir"). + * If unspecified, a default bucket located in the same region will be used. + *+ * + *string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @param value The bytes for artifactStorage to set. + * @return This builder for chaining. + */ + public Builder setArtifactStorageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + artifactStorage_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ExecutionConfigOrBuilder.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ExecutionConfigOrBuilder.java index a1c7d44..85db511 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ExecutionConfigOrBuilder.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ExecutionConfigOrBuilder.java @@ -179,6 +179,101 @@ public interface ExecutionConfigOrBuilder */ com.google.cloud.deploy.v1.PrivatePoolOrBuilder getPrivatePoolOrBuilder(); + /** + * + * + *+ * Optional. The resource name of the `WorkerPool`, with the format + * `projects/{project}/locations/{location}/workerPools/{worker_pool}`. + * If this optional field is unspecified, the default Cloud Build pool will be + * used. + *+ * + *+ * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * + * @return The workerPool. + */ + java.lang.String getWorkerPool(); + /** + * + * + *+ * Optional. The resource name of the `WorkerPool`, with the format + * `projects/{project}/locations/{location}/workerPools/{worker_pool}`. + * If this optional field is unspecified, the default Cloud Build pool will be + * used. + *+ * + *+ * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * + * @return The bytes for workerPool. + */ + com.google.protobuf.ByteString getWorkerPoolBytes(); + + /** + * + * + *+ * Optional. Google service account to use for execution. If unspecified, + * the project execution service account + * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used. + *+ * + *string service_account = 5 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + /** + * + * + *+ * Optional. Google service account to use for execution. If unspecified, + * the project execution service account + * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used. + *+ * + *string service_account = 5 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); + + /** + * + * + *+ * Optional. Cloud Storage location in which to store execution outputs. This can + * either be a bucket ("gs://my-bucket") or a path within a bucket + * ("gs://my-bucket/my-dir"). + * If unspecified, a default bucket located in the same region will be used. + *+ * + *string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return The artifactStorage. + */ + java.lang.String getArtifactStorage(); + /** + * + * + *+ * Optional. Cloud Storage location in which to store execution outputs. This can + * either be a bucket ("gs://my-bucket") or a path within a bucket + * ("gs://my-bucket/my-dir"). + * If unspecified, a default bucket located in the same region will be used. + *+ * + *string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return The bytes for artifactStorage. + */ + com.google.protobuf.ByteString getArtifactStorageBytes(); + public com.google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentCase getExecutionEnvironmentCase(); } diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetConfigRequest.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetConfigRequest.java index 0c5d422..2d6fb0b 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetConfigRequest.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetConfigRequest.java @@ -88,6 +88,8 @@ private GetConfigRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetDeliveryPipelineRequest.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetDeliveryPipelineRequest.java index 0cdacf3..699616f 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetDeliveryPipelineRequest.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetDeliveryPipelineRequest.java @@ -88,6 +88,8 @@ private GetDeliveryPipelineRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetReleaseRequest.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetReleaseRequest.java index 8d398cf..8ac63ed 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetReleaseRequest.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetReleaseRequest.java @@ -88,6 +88,8 @@ private GetReleaseRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetRolloutRequest.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetRolloutRequest.java index 390a349..cd39273 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetRolloutRequest.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetRolloutRequest.java @@ -88,6 +88,8 @@ private GetRolloutRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetTargetRequest.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetTargetRequest.java index d8c72a3..1b74a40 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetTargetRequest.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetTargetRequest.java @@ -88,6 +88,8 @@ private GetTargetRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeCluster.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeCluster.java index 95c6629..dd7f895 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeCluster.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeCluster.java @@ -77,6 +77,11 @@ private GkeCluster( cluster_ = s; break; } + case 16: + { + internalIp_ = input.readBool(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -88,6 +93,8 @@ private GkeCluster( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -162,6 +169,30 @@ public com.google.protobuf.ByteString getClusterBytes() { } } + public static final int INTERNAL_IP_FIELD_NUMBER = 2; + private boolean internalIp_; + /** + * + * + *+ * Optional. If true, `cluster` is accessed using the private IP address of the control + * plane endpoint. Otherwise, the default IP address of the control plane + * endpoint is used. The default IP address is the private IP address for + * clusters with private control-plane endpoints and the public IP address + * otherwise. + * Only specify this option when `cluster` is a [private GKE + * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). + *+ * + *bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return The internalIp. + */ + @java.lang.Override + public boolean getInternalIp() { + return internalIp_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -179,6 +210,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cluster_); } + if (internalIp_ != false) { + output.writeBool(2, internalIp_); + } unknownFields.writeTo(output); } @@ -191,6 +225,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cluster_); } + if (internalIp_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, internalIp_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -207,6 +244,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.deploy.v1.GkeCluster other = (com.google.cloud.deploy.v1.GkeCluster) obj; if (!getCluster().equals(other.getCluster())) return false; + if (getInternalIp() != other.getInternalIp()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -220,6 +258,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CLUSTER_FIELD_NUMBER; hash = (53 * hash) + getCluster().hashCode(); + hash = (37 * hash) + INTERNAL_IP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInternalIp()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -366,6 +406,8 @@ public Builder clear() { super.clear(); cluster_ = ""; + internalIp_ = false; + return this; } @@ -394,6 +436,7 @@ public com.google.cloud.deploy.v1.GkeCluster buildPartial() { com.google.cloud.deploy.v1.GkeCluster result = new com.google.cloud.deploy.v1.GkeCluster(this); result.cluster_ = cluster_; + result.internalIp_ = internalIp_; onBuilt(); return result; } @@ -447,6 +490,9 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.GkeCluster other) { cluster_ = other.cluster_; onChanged(); } + if (other.getInternalIp() != false) { + setInternalIp(other.getInternalIp()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -587,6 +633,76 @@ public Builder setClusterBytes(com.google.protobuf.ByteString value) { return this; } + private boolean internalIp_; + /** + * + * + *+ * Optional. If true, `cluster` is accessed using the private IP address of the control + * plane endpoint. Otherwise, the default IP address of the control plane + * endpoint is used. The default IP address is the private IP address for + * clusters with private control-plane endpoints and the public IP address + * otherwise. + * Only specify this option when `cluster` is a [private GKE + * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). + *+ * + *bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return The internalIp. + */ + @java.lang.Override + public boolean getInternalIp() { + return internalIp_; + } + /** + * + * + *+ * Optional. If true, `cluster` is accessed using the private IP address of the control + * plane endpoint. Otherwise, the default IP address of the control plane + * endpoint is used. The default IP address is the private IP address for + * clusters with private control-plane endpoints and the public IP address + * otherwise. + * Only specify this option when `cluster` is a [private GKE + * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). + *+ * + *bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @param value The internalIp to set. + * @return This builder for chaining. + */ + public Builder setInternalIp(boolean value) { + + internalIp_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * Optional. If true, `cluster` is accessed using the private IP address of the control + * plane endpoint. Otherwise, the default IP address of the control plane + * endpoint is used. The default IP address is the private IP address for + * clusters with private control-plane endpoints and the public IP address + * otherwise. + * Only specify this option when `cluster` is a [private GKE + * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). + *+ * + *bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return This builder for chaining. + */ + public Builder clearInternalIp() { + + internalIp_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeClusterOrBuilder.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeClusterOrBuilder.java index 4258e40..f5cc45e 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeClusterOrBuilder.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeClusterOrBuilder.java @@ -49,4 +49,23 @@ public interface GkeClusterOrBuilder * @return The bytes for cluster. */ com.google.protobuf.ByteString getClusterBytes(); + + /** + * + * + *+ * Optional. If true, `cluster` is accessed using the private IP address of the control + * plane endpoint. Otherwise, the default IP address of the control plane + * endpoint is used. The default IP address is the private IP address for + * clusters with private control-plane endpoints and the public IP address + * otherwise. + * Only specify this option when `cluster` is a [private GKE + * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). + *+ * + *bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return The internalIp. + */ + boolean getInternalIp(); } diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListDeliveryPipelinesRequest.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListDeliveryPipelinesRequest.java index 18ed7fb..ba3a315 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListDeliveryPipelinesRequest.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListDeliveryPipelinesRequest.java @@ -117,6 +117,8 @@ private ListDeliveryPipelinesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -277,7 +279,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *- * Filter builds to be returned. See https://google.aip.dev/160 for more + * Filter pipelines to be returned. See https://google.aip.dev/160 for more * details. ** @@ -301,7 +303,7 @@ public java.lang.String getFilter() { * * *- * Filter builds to be returned. See https://google.aip.dev/160 for more + * Filter pipelines to be returned. See https://google.aip.dev/160 for more * details. ** @@ -1061,7 +1063,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *- * Filter builds to be returned. See https://google.aip.dev/160 for more + * Filter pipelines to be returned. See https://google.aip.dev/160 for more * details. ** @@ -1084,7 +1086,7 @@ public java.lang.String getFilter() { * * *- * Filter builds to be returned. See https://google.aip.dev/160 for more + * Filter pipelines to be returned. See https://google.aip.dev/160 for more * details. ** @@ -1107,7 +1109,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *- * Filter builds to be returned. See https://google.aip.dev/160 for more + * Filter pipelines to be returned. See https://google.aip.dev/160 for more * details. ** @@ -1129,7 +1131,7 @@ public Builder setFilter(java.lang.String value) { * * *- * Filter builds to be returned. See https://google.aip.dev/160 for more + * Filter pipelines to be returned. See https://google.aip.dev/160 for more * details. ** @@ -1147,7 +1149,7 @@ public Builder clearFilter() { * * *- * Filter builds to be returned. See https://google.aip.dev/160 for more + * Filter pipelines to be returned. See https://google.aip.dev/160 for more * details. ** diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListDeliveryPipelinesRequestOrBuilder.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListDeliveryPipelinesRequestOrBuilder.java index 2db73e8..29dee5a 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListDeliveryPipelinesRequestOrBuilder.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListDeliveryPipelinesRequestOrBuilder.java @@ -105,7 +105,7 @@ public interface ListDeliveryPipelinesRequestOrBuilder * * *- * Filter builds to be returned. See https://google.aip.dev/160 for more + * Filter pipelines to be returned. See https://google.aip.dev/160 for more * details. ** @@ -118,7 +118,7 @@ public interface ListDeliveryPipelinesRequestOrBuilder * * *- * Filter builds to be returned. See https://google.aip.dev/160 for more + * Filter pipelines to be returned. See https://google.aip.dev/160 for more * details. ** diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListDeliveryPipelinesResponse.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListDeliveryPipelinesResponse.java index 9153138..0b5d183 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListDeliveryPipelinesResponse.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListDeliveryPipelinesResponse.java @@ -113,6 +113,8 @@ private ListDeliveryPipelinesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesRequest.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesRequest.java index ce804f1..34f23b4 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesRequest.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesRequest.java @@ -117,6 +117,8 @@ private ListReleasesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -274,7 +276,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter releases to be returned. See https://google.aip.dev/160 for more * details. ** @@ -298,7 +300,7 @@ public java.lang.String getFilter() { * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter releases to be returned. See https://google.aip.dev/160 for more * details. ** @@ -1047,7 +1049,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter releases to be returned. See https://google.aip.dev/160 for more * details. ** @@ -1070,7 +1072,7 @@ public java.lang.String getFilter() { * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter releases to be returned. See https://google.aip.dev/160 for more * details. ** @@ -1093,7 +1095,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter releases to be returned. See https://google.aip.dev/160 for more * details. ** @@ -1115,7 +1117,7 @@ public Builder setFilter(java.lang.String value) { * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter releases to be returned. See https://google.aip.dev/160 for more * details. ** @@ -1133,7 +1135,7 @@ public Builder clearFilter() { * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter releases to be returned. See https://google.aip.dev/160 for more * details. ** diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesRequestOrBuilder.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesRequestOrBuilder.java index 2cb992b..6c44c6a 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesRequestOrBuilder.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesRequestOrBuilder.java @@ -102,7 +102,7 @@ public interface ListReleasesRequestOrBuilder * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter releases to be returned. See https://google.aip.dev/160 for more * details. ** @@ -115,7 +115,7 @@ public interface ListReleasesRequestOrBuilder * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter releases to be returned. See https://google.aip.dev/160 for more * details. ** diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesResponse.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesResponse.java index 9d78709..c6ea9bd 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesResponse.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesResponse.java @@ -112,6 +112,8 @@ private ListReleasesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsRequest.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsRequest.java index 06137a2..f2fd5dd 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsRequest.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsRequest.java @@ -117,6 +117,8 @@ private ListRolloutsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -274,7 +276,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more * details. ** @@ -298,7 +300,7 @@ public java.lang.String getFilter() { * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more * details. ** @@ -1047,7 +1049,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more * details. ** @@ -1070,7 +1072,7 @@ public java.lang.String getFilter() { * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more * details. ** @@ -1093,7 +1095,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more * details. ** @@ -1115,7 +1117,7 @@ public Builder setFilter(java.lang.String value) { * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more * details. ** @@ -1133,7 +1135,7 @@ public Builder clearFilter() { * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more * details. ** diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsRequestOrBuilder.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsRequestOrBuilder.java index 8df6459..fce1c58 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsRequestOrBuilder.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsRequestOrBuilder.java @@ -102,7 +102,7 @@ public interface ListRolloutsRequestOrBuilder * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more * details. ** @@ -115,7 +115,7 @@ public interface ListRolloutsRequestOrBuilder * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more * details. ** diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsResponse.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsResponse.java index 360fecf..262f54d 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsResponse.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsResponse.java @@ -112,6 +112,8 @@ private ListRolloutsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsRequest.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsRequest.java index 17e5fb6..088d98d 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsRequest.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsRequest.java @@ -117,6 +117,8 @@ private ListTargetsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -276,7 +278,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter targets to be returned. See https://google.aip.dev/160 for more * details. ** @@ -300,7 +302,7 @@ public java.lang.String getFilter() { * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter targets to be returned. See https://google.aip.dev/160 for more * details. ** @@ -1054,7 +1056,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter targets to be returned. See https://google.aip.dev/160 for more * details. ** @@ -1077,7 +1079,7 @@ public java.lang.String getFilter() { * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter targets to be returned. See https://google.aip.dev/160 for more * details. ** @@ -1100,7 +1102,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter targets to be returned. See https://google.aip.dev/160 for more * details. ** @@ -1122,7 +1124,7 @@ public Builder setFilter(java.lang.String value) { * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter targets to be returned. See https://google.aip.dev/160 for more * details. ** @@ -1140,7 +1142,7 @@ public Builder clearFilter() { * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter targets to be returned. See https://google.aip.dev/160 for more * details. ** diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsRequestOrBuilder.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsRequestOrBuilder.java index fcc8966..b18437a 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsRequestOrBuilder.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsRequestOrBuilder.java @@ -104,7 +104,7 @@ public interface ListTargetsRequestOrBuilder * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter targets to be returned. See https://google.aip.dev/160 for more * details. ** @@ -117,7 +117,7 @@ public interface ListTargetsRequestOrBuilder * * *- * Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + * Optional. Filter targets to be returned. See https://google.aip.dev/160 for more * details. ** diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsResponse.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsResponse.java index 0bde947..ae09239 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsResponse.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsResponse.java @@ -111,6 +111,8 @@ private ListTargetsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/LocationName.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/LocationName.java index 53674f9..0a2d1ab 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/LocationName.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/LocationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/LogEnumsProto.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/LogEnumsProto.java new file mode 100644 index 0000000..9b86908 --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/LogEnumsProto.java @@ -0,0 +1,53 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/log_enums.proto + +package com.google.cloud.deploy.v1; + +public final class LogEnumsProto { + private LogEnumsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n&google/cloud/deploy/v1/log_enums.proto" + + "\022\026google.cloud.deploy.v1*b\n\004Type\022\024\n\020TYPE" + + "_UNSPECIFIED\020\000\022$\n TYPE_PUBSUB_NOTIFICATI" + + "ON_FAILURE\020\001\022\036\n\032TYPE_RENDER_STATUES_CHAN" + + "GE\020\002Bk\n\032com.google.cloud.deploy.v1B\rLogE" + + "numsProtoP\001Z+ * Output only. Reason this render failed. This will always be unspecified while the + * render in progress. + * + * .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The enum numeric value on the wire for failureCause. + */ + int getFailureCauseValue(); + /** + * + * + *+ * Output only. Reason this render failed. This will always be unspecified while the + * render in progress. + *+ * + *+ * .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The failureCause. + */ + com.google.cloud.deploy.v1.Release.TargetRender.FailureCause getFailureCause(); } /** * @@ -612,6 +645,7 @@ private TargetRender(com.google.protobuf.GeneratedMessageV3.Builder> builder) private TargetRender() { renderingBuild_ = ""; renderingState_ = 0; + failureCause_ = 0; } @java.lang.Override @@ -657,6 +691,13 @@ private TargetRender( renderingState_ = rawValue; break; } + case 32: + { + int rawValue = input.readEnum(); + + failureCause_ = rawValue; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -668,6 +709,8 @@ private TargetRender( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -875,6 +918,171 @@ private TargetRenderState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.deploy.v1.Release.TargetRender.TargetRenderState) } + /** + * + * + *+ * Well-known rendering failures. + *+ * + * Protobuf enum {@code google.cloud.deploy.v1.Release.TargetRender.FailureCause} + */ + public enum FailureCause implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *+ * No reason for failure is specified. + *+ * + *FAILURE_CAUSE_UNSPECIFIED = 0;
+ */ + FAILURE_CAUSE_UNSPECIFIED(0), + /** + * + * + *+ * Cloud Build is not available, either because it is not enabled or + * because Cloud Deploy has insufficient permissions. See [required + * permission](/deploy/docs/cloud-deploy-service-account#required_permissions). + *+ * + *CLOUD_BUILD_UNAVAILABLE = 1;
+ */ + CLOUD_BUILD_UNAVAILABLE(1), + /** + * + * + *+ * The render operation did not complete successfully; check Cloud Build + * logs. + *+ * + *EXECUTION_FAILED = 2;
+ */ + EXECUTION_FAILED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *+ * No reason for failure is specified. + *+ * + *FAILURE_CAUSE_UNSPECIFIED = 0;
+ */ + public static final int FAILURE_CAUSE_UNSPECIFIED_VALUE = 0; + /** + * + * + *+ * Cloud Build is not available, either because it is not enabled or + * because Cloud Deploy has insufficient permissions. See [required + * permission](/deploy/docs/cloud-deploy-service-account#required_permissions). + *+ * + *CLOUD_BUILD_UNAVAILABLE = 1;
+ */ + public static final int CLOUD_BUILD_UNAVAILABLE_VALUE = 1; + /** + * + * + *+ * The render operation did not complete successfully; check Cloud Build + * logs. + *+ * + *EXECUTION_FAILED = 2;
+ */ + public static final int EXECUTION_FAILED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FailureCause valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static FailureCause forNumber(int value) { + switch (value) { + case 0: + return FAILURE_CAUSE_UNSPECIFIED; + case 1: + return CLOUD_BUILD_UNAVAILABLE; + case 2: + return EXECUTION_FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMapinternalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap () { + public FailureCause findValueByNumber(int number) { + return FailureCause.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.deploy.v1.Release.TargetRender.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final FailureCause[] VALUES = values(); + + public static FailureCause valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FailureCause(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.deploy.v1.Release.TargetRender.FailureCause) + } + public static final int RENDERING_BUILD_FIELD_NUMBER = 1; private volatile java.lang.Object renderingBuild_; /** @@ -975,6 +1183,50 @@ public com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState getRend : result; } + public static final int FAILURE_CAUSE_FIELD_NUMBER = 4; + private int failureCause_; + /** + * + * + * + * Output only. Reason this render failed. This will always be unspecified while the + * render in progress. + *+ * + *+ * .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The enum numeric value on the wire for failureCause. + */ + @java.lang.Override + public int getFailureCauseValue() { + return failureCause_; + } + /** + * + * + *+ * Output only. Reason this render failed. This will always be unspecified while the + * render in progress. + *+ * + *+ * .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The failureCause. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.Release.TargetRender.FailureCause getFailureCause() { + @SuppressWarnings("deprecation") + com.google.cloud.deploy.v1.Release.TargetRender.FailureCause result = + com.google.cloud.deploy.v1.Release.TargetRender.FailureCause.valueOf(failureCause_); + return result == null + ? com.google.cloud.deploy.v1.Release.TargetRender.FailureCause.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -998,6 +1250,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(2, renderingState_); } + if (failureCause_ + != com.google.cloud.deploy.v1.Release.TargetRender.FailureCause.FAILURE_CAUSE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, failureCause_); + } unknownFields.writeTo(output); } @@ -1016,6 +1273,11 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, renderingState_); } + if (failureCause_ + != com.google.cloud.deploy.v1.Release.TargetRender.FailureCause.FAILURE_CAUSE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, failureCause_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1034,6 +1296,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRenderingBuild().equals(other.getRenderingBuild())) return false; if (renderingState_ != other.renderingState_) return false; + if (failureCause_ != other.failureCause_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1049,6 +1312,8 @@ public int hashCode() { hash = (53 * hash) + getRenderingBuild().hashCode(); hash = (37 * hash) + RENDERING_STATE_FIELD_NUMBER; hash = (53 * hash) + renderingState_; + hash = (37 * hash) + FAILURE_CAUSE_FIELD_NUMBER; + hash = (53 * hash) + failureCause_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1200,6 +1465,8 @@ public Builder clear() { renderingState_ = 0; + failureCause_ = 0; + return this; } @@ -1229,6 +1496,7 @@ public com.google.cloud.deploy.v1.Release.TargetRender buildPartial() { new com.google.cloud.deploy.v1.Release.TargetRender(this); result.renderingBuild_ = renderingBuild_; result.renderingState_ = renderingState_; + result.failureCause_ = failureCause_; onBuilt(); return result; } @@ -1288,6 +1556,9 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.Release.TargetRender other) if (other.renderingState_ != 0) { setRenderingStateValue(other.getRenderingStateValue()); } + if (other.failureCause_ != 0) { + setFailureCauseValue(other.getFailureCauseValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1549,6 +1820,115 @@ public Builder clearRenderingState() { return this; } + private int failureCause_ = 0; + /** + * + * + *+ * Output only. Reason this render failed. This will always be unspecified while the + * render in progress. + *+ * + *+ * .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The enum numeric value on the wire for failureCause. + */ + @java.lang.Override + public int getFailureCauseValue() { + return failureCause_; + } + /** + * + * + *+ * Output only. Reason this render failed. This will always be unspecified while the + * render in progress. + *+ * + *+ * .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @param value The enum numeric value on the wire for failureCause to set. + * @return This builder for chaining. + */ + public Builder setFailureCauseValue(int value) { + + failureCause_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * Output only. Reason this render failed. This will always be unspecified while the + * render in progress. + *+ * + *+ * .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The failureCause. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.Release.TargetRender.FailureCause getFailureCause() { + @SuppressWarnings("deprecation") + com.google.cloud.deploy.v1.Release.TargetRender.FailureCause result = + com.google.cloud.deploy.v1.Release.TargetRender.FailureCause.valueOf(failureCause_); + return result == null + ? com.google.cloud.deploy.v1.Release.TargetRender.FailureCause.UNRECOGNIZED + : result; + } + /** + * + * + *+ * Output only. Reason this render failed. This will always be unspecified while the + * render in progress. + *+ * + *+ * .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @param value The failureCause to set. + * @return This builder for chaining. + */ + public Builder setFailureCause( + com.google.cloud.deploy.v1.Release.TargetRender.FailureCause value) { + if (value == null) { + throw new NullPointerException(); + } + + failureCause_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *+ * Output only. Reason this render failed. This will always be unspecified while the + * render in progress. + *+ * + *+ * .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return This builder for chaining. + */ + public Builder clearFailureCause() { + + failureCause_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1793,7 +2173,7 @@ public int getAnnotationsCount() { @java.lang.Override public boolean containsAnnotations(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } @@ -1835,7 +2215,7 @@ public java.util.MapgetAnnotationsMap() { public java.lang.String getAnnotationsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1855,7 +2235,7 @@ public java.lang.String getAnnotationsOrDefault( @java.lang.Override public java.lang.String getAnnotationsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { @@ -1895,10 +2275,14 @@ public int getLabelsCount() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -1906,7 +2290,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1922,10 +2306,14 @@ public java.util.MapgetLabels() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -1940,10 +2328,14 @@ public java.util.MapgetLabelsMap() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -1951,7 +2343,7 @@ public java.util.MapgetLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1962,10 +2354,14 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -1973,7 +2369,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Mapmap = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2367,7 +2763,7 @@ public com.google.cloud.deploy.v1.DeliveryPipeline getDeliveryPipelineSnapshot() * * * - * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -2382,7 +2778,7 @@ public java.util.List
getTargetSnapshotsList( * * * - * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -2398,7 +2794,7 @@ public java.util.List
getTargetSnapshotsList( * * * - * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -2413,7 +2809,7 @@ public int getTargetSnapshotsCount() { * * *
- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -2428,7 +2824,7 @@ public com.google.cloud.deploy.v1.Target getTargetSnapshots(int index) { * * *
- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -2634,7 +3030,7 @@ public int getTargetArtifactsCount() { @java.lang.Override public boolean containsTargetArtifacts(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetTargetArtifacts().getMap().containsKey(key); } @@ -2678,7 +3074,7 @@ public boolean containsTargetArtifacts(java.lang.String key) { public com.google.cloud.deploy.v1.TargetArtifact getTargetArtifactsOrDefault( java.lang.String key, com.google.cloud.deploy.v1.TargetArtifact defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map
map = internalGetTargetArtifacts().getMap(); @@ -2699,7 +3095,7 @@ public com.google.cloud.deploy.v1.TargetArtifact getTargetArtifactsOrDefault( @java.lang.Override public com.google.cloud.deploy.v1.TargetArtifact getTargetArtifactsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTargetArtifacts().getMap(); @@ -2757,7 +3153,7 @@ public int getTargetRendersCount() { @java.lang.Override public boolean containsTargetRenders(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetTargetRenders().getMap().containsKey(key); } @@ -2799,7 +3195,7 @@ public boolean containsTargetRenders(java.lang.String key) { public com.google.cloud.deploy.v1.Release.TargetRender getTargetRendersOrDefault( java.lang.String key, com.google.cloud.deploy.v1.Release.TargetRender defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTargetRenders().getMap(); @@ -2820,7 +3216,7 @@ public com.google.cloud.deploy.v1.Release.TargetRender getTargetRendersOrDefault public com.google.cloud.deploy.v1.Release.TargetRender getTargetRendersOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTargetRenders().getMap(); @@ -3974,7 +4370,7 @@ public int getAnnotationsCount() { @java.lang.Override public boolean containsAnnotations(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } @@ -4016,7 +4412,7 @@ public java.util.Map getAnnotationsMap() { public java.lang.String getAnnotationsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -4036,7 +4432,7 @@ public java.lang.String getAnnotationsOrDefault( @java.lang.Override public java.lang.String getAnnotationsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { @@ -4063,7 +4459,7 @@ public Builder clearAnnotations() { */ public Builder removeAnnotations(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableAnnotations().getMutableMap().remove(key); return this; @@ -4087,11 +4483,12 @@ public java.util.Map getMutableAnnotations() */ public Builder putAnnotations(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableAnnotations().getMutableMap().put(key, value); return this; } @@ -4143,10 +4540,14 @@ public int getLabelsCount() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -4154,7 +4555,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -4170,10 +4571,14 @@ public java.util.MapgetLabels() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -4188,10 +4593,14 @@ public java.util.MapgetLabelsMap() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -4200,7 +4609,7 @@ public java.util.MapgetLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -4211,10 +4620,14 @@ public java.lang.String getLabelsOrDefault( * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -4222,7 +4635,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Mapmap = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -4241,17 +4654,21 @@ public Builder clearLabels() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
*/ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -4267,21 +4684,26 @@ public java.util.MapgetMutableLabels() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
*/ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } @@ -4291,10 +4713,14 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { ** Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -5705,7 +6131,7 @@ private void ensureTargetSnapshotsIsMutable() { * * *- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -5723,7 +6149,7 @@ public java.util.List
getTargetSnapshotsList( * * * - * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -5741,7 +6167,7 @@ public int getTargetSnapshotsCount() { * * *
- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -5759,7 +6185,7 @@ public com.google.cloud.deploy.v1.Target getTargetSnapshots(int index) { * * *
- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -5783,7 +6209,7 @@ public Builder setTargetSnapshots(int index, com.google.cloud.deploy.v1.Target v * * *
- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -5805,7 +6231,7 @@ public Builder setTargetSnapshots( * * *
- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -5829,7 +6255,7 @@ public Builder addTargetSnapshots(com.google.cloud.deploy.v1.Target value) { * * *
- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -5853,7 +6279,7 @@ public Builder addTargetSnapshots(int index, com.google.cloud.deploy.v1.Target v * * *
- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -5874,7 +6300,7 @@ public Builder addTargetSnapshots(com.google.cloud.deploy.v1.Target.Builder buil * * *
- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -5896,7 +6322,7 @@ public Builder addTargetSnapshots( * * *
- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -5918,7 +6344,7 @@ public Builder addAllTargetSnapshots( * * *
- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -5939,7 +6365,7 @@ public Builder clearTargetSnapshots() { * * *
- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -5960,7 +6386,7 @@ public Builder removeTargetSnapshots(int index) { * * *
- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -5974,7 +6400,7 @@ public com.google.cloud.deploy.v1.Target.Builder getTargetSnapshotsBuilder(int i * * *
- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -5992,7 +6418,7 @@ public com.google.cloud.deploy.v1.TargetOrBuilder getTargetSnapshotsOrBuilder(in * * *
- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -6011,7 +6437,7 @@ public com.google.cloud.deploy.v1.TargetOrBuilder getTargetSnapshotsOrBuilder(in * * *
- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -6026,7 +6452,7 @@ public com.google.cloud.deploy.v1.Target.Builder addTargetSnapshotsBuilder() { * * *
- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -6041,7 +6467,7 @@ public com.google.cloud.deploy.v1.Target.Builder addTargetSnapshotsBuilder(int i * * *
- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -6459,7 +6885,7 @@ public int getTargetArtifactsCount() { @java.lang.Override public boolean containsTargetArtifacts(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetTargetArtifacts().getMap().containsKey(key); } @@ -6503,7 +6929,7 @@ public boolean containsTargetArtifacts(java.lang.String key) { public com.google.cloud.deploy.v1.TargetArtifact getTargetArtifactsOrDefault( java.lang.String key, com.google.cloud.deploy.v1.TargetArtifact defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map
*/ - java.lang.String getAnnotationsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * @@ -177,10 +182,14 @@ public interface ReleaseOrBuilder *map = internalGetTargetArtifacts().getMap(); @@ -6525,7 +6951,7 @@ public com.google.cloud.deploy.v1.TargetArtifact getTargetArtifactsOrDefault( public com.google.cloud.deploy.v1.TargetArtifact getTargetArtifactsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTargetArtifacts().getMap(); @@ -6553,7 +6979,7 @@ public Builder clearTargetArtifacts() { */ public Builder removeTargetArtifacts(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableTargetArtifacts().getMutableMap().remove(key); return this; @@ -6579,11 +7005,12 @@ public Builder removeTargetArtifacts(java.lang.String key) { public Builder putTargetArtifacts( java.lang.String key, com.google.cloud.deploy.v1.TargetArtifact value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableTargetArtifacts().getMutableMap().put(key, value); return this; } @@ -6651,7 +7078,7 @@ public int getTargetRendersCount() { @java.lang.Override public boolean containsTargetRenders(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetTargetRenders().getMap().containsKey(key); } @@ -6693,7 +7120,7 @@ public boolean containsTargetRenders(java.lang.String key) { public com.google.cloud.deploy.v1.Release.TargetRender getTargetRendersOrDefault( java.lang.String key, com.google.cloud.deploy.v1.Release.TargetRender defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTargetRenders().getMap(); @@ -6714,7 +7141,7 @@ public com.google.cloud.deploy.v1.Release.TargetRender getTargetRendersOrDefault public com.google.cloud.deploy.v1.Release.TargetRender getTargetRendersOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTargetRenders().getMap(); @@ -6741,7 +7168,7 @@ public Builder clearTargetRenders() { */ public Builder removeTargetRenders(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableTargetRenders().getMutableMap().remove(key); return this; @@ -6766,11 +7193,12 @@ public Builder removeTargetRenders(java.lang.String key) { public Builder putTargetRenders( java.lang.String key, com.google.cloud.deploy.v1.Release.TargetRender value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableTargetRenders().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseName.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseName.java index c83ddff..90a01fa 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseName.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseNotificationEvent.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseNotificationEvent.java new file mode 100644 index 0000000..83256d6 --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseNotificationEvent.java @@ -0,0 +1,969 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/release_notification_payload.proto + +package com.google.cloud.deploy.v1; + +/** + * + * + * + * Payload proto for "clouddeploy.googleapis.com/release_notification" + * Platform Log event that describes the failure to send release status change + * Pub/Sub notification. + *+ * + * Protobuf type {@code google.cloud.deploy.v1.ReleaseNotificationEvent} + */ +public final class ReleaseNotificationEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.ReleaseNotificationEvent) + ReleaseNotificationEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReleaseNotificationEvent.newBuilder() to construct. + private ReleaseNotificationEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ReleaseNotificationEvent() { + message_ = ""; + release_ = ""; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReleaseNotificationEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReleaseNotificationEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + release_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.ReleaseNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_ReleaseNotificationEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.ReleaseNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_ReleaseNotificationEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.ReleaseNotificationEvent.class, + com.google.cloud.deploy.v1.ReleaseNotificationEvent.Builder.class); + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object message_; + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RELEASE_FIELD_NUMBER = 2; + private volatile java.lang.Object release_; + /** + * + * + *+ * The name of the `Release`. + *+ * + *string release = 2;
+ * + * @return The release. + */ + @java.lang.Override + public java.lang.String getRelease() { + java.lang.Object ref = release_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + release_ = s; + return s; + } + } + /** + * + * + *+ * The name of the `Release`. + *+ * + *string release = 2;
+ * + * @return The bytes for release. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReleaseBytes() { + java.lang.Object ref = release_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + release_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 3; + private int type_; + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.Type getType() { + @SuppressWarnings("deprecation") + com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.valueOf(type_); + return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(release_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, release_); + } + if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(release_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, release_); + } + if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.deploy.v1.ReleaseNotificationEvent)) { + return super.equals(obj); + } + com.google.cloud.deploy.v1.ReleaseNotificationEvent other = + (com.google.cloud.deploy.v1.ReleaseNotificationEvent) obj; + + if (!getMessage().equals(other.getMessage())) return false; + if (!getRelease().equals(other.getRelease())) return false; + if (type_ != other.type_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + RELEASE_FIELD_NUMBER; + hash = (53 * hash) + getRelease().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.deploy.v1.ReleaseNotificationEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *+ * Payload proto for "clouddeploy.googleapis.com/release_notification" + * Platform Log event that describes the failure to send release status change + * Pub/Sub notification. + *+ * + * Protobuf type {@code google.cloud.deploy.v1.ReleaseNotificationEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.ReleaseNotificationEvent) + com.google.cloud.deploy.v1.ReleaseNotificationEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.ReleaseNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_ReleaseNotificationEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.ReleaseNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_ReleaseNotificationEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.ReleaseNotificationEvent.class, + com.google.cloud.deploy.v1.ReleaseNotificationEvent.Builder.class); + } + + // Construct using com.google.cloud.deploy.v1.ReleaseNotificationEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + message_ = ""; + + release_ = ""; + + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.ReleaseNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_ReleaseNotificationEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.ReleaseNotificationEvent getDefaultInstanceForType() { + return com.google.cloud.deploy.v1.ReleaseNotificationEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.deploy.v1.ReleaseNotificationEvent build() { + com.google.cloud.deploy.v1.ReleaseNotificationEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.ReleaseNotificationEvent buildPartial() { + com.google.cloud.deploy.v1.ReleaseNotificationEvent result = + new com.google.cloud.deploy.v1.ReleaseNotificationEvent(this); + result.message_ = message_; + result.release_ = release_; + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.deploy.v1.ReleaseNotificationEvent) { + return mergeFrom((com.google.cloud.deploy.v1.ReleaseNotificationEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.deploy.v1.ReleaseNotificationEvent other) { + if (other == com.google.cloud.deploy.v1.ReleaseNotificationEvent.getDefaultInstance()) + return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (!other.getRelease().isEmpty()) { + release_ = other.release_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.deploy.v1.ReleaseNotificationEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.deploy.v1.ReleaseNotificationEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object message_ = ""; + /** + * + * + * + * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return This builder for chaining. + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + private java.lang.Object release_ = ""; + /** + * + * + *+ * The name of the `Release`. + *+ * + *string release = 2;
+ * + * @return The release. + */ + public java.lang.String getRelease() { + java.lang.Object ref = release_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + release_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * The name of the `Release`. + *+ * + *string release = 2;
+ * + * @return The bytes for release. + */ + public com.google.protobuf.ByteString getReleaseBytes() { + java.lang.Object ref = release_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + release_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * The name of the `Release`. + *+ * + *string release = 2;
+ * + * @param value The release to set. + * @return This builder for chaining. + */ + public Builder setRelease(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + release_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * The name of the `Release`. + *+ * + *string release = 2;
+ * + * @return This builder for chaining. + */ + public Builder clearRelease() { + + release_ = getDefaultInstance().getRelease(); + onChanged(); + return this; + } + /** + * + * + *+ * The name of the `Release`. + *+ * + *string release = 2;
+ * + * @param value The bytes for release to set. + * @return This builder for chaining. + */ + public Builder setReleaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + release_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.Type getType() { + @SuppressWarnings("deprecation") + com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.valueOf(type_); + return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; + } + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.deploy.v1.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.ReleaseNotificationEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.ReleaseNotificationEvent) + private static final com.google.cloud.deploy.v1.ReleaseNotificationEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.ReleaseNotificationEvent(); + } + + public static com.google.cloud.deploy.v1.ReleaseNotificationEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public ReleaseNotificationEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReleaseNotificationEvent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.ReleaseNotificationEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseNotificationEventOrBuilder.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseNotificationEventOrBuilder.java new file mode 100644 index 0000000..9a045a4 --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseNotificationEventOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/release_notification_payload.proto + +package com.google.cloud.deploy.v1; + +public interface ReleaseNotificationEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.ReleaseNotificationEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The message. + */ + java.lang.String getMessage(); + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *+ * The name of the `Release`. + *+ * + *string release = 2;
+ * + * @return The release. + */ + java.lang.String getRelease(); + /** + * + * + *+ * The name of the `Release`. + *+ * + *string release = 2;
+ * + * @return The bytes for release. + */ + com.google.protobuf.ByteString getReleaseBytes(); + + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @return The type. + */ + com.google.cloud.deploy.v1.Type getType(); +} diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseNotificationPayloadProto.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseNotificationPayloadProto.java new file mode 100644 index 0000000..e3e5e8b --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseNotificationPayloadProto.java @@ -0,0 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/release_notification_payload.proto + +package com.google.cloud.deploy.v1; + +public final class ReleaseNotificationPayloadProto { + private ReleaseNotificationPayloadProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_ReleaseNotificationEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_ReleaseNotificationEvent_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/deploy/v1/release_notific" + + "ation_payload.proto\022\026google.cloud.deploy" + + ".v1\032&google/cloud/deploy/v1/log_enums.pr" + + "oto\"h\n\030ReleaseNotificationEvent\022\017\n\007messa" + + "ge\030\001 \001(\t\022\017\n\007release\030\002 \001(\t\022*\n\004type\030\003 \001(\0162" + + "\034.google.cloud.deploy.v1.TypeB}\n\032com.goo" + + "gle.cloud.deploy.v1B\037ReleaseNotification" + + "PayloadProtoP\001Zmap<string, string> annotations = 4; * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -192,10 +201,14 @@ public interface ReleaseOrBuilder ** Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -210,10 +223,14 @@ public interface ReleaseOrBuilder ** Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -225,25 +242,38 @@ public interface ReleaseOrBuilder ** Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
*/ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * ** Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -517,7 +547,7 @@ public interface ReleaseOrBuilder * * *- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -529,7 +559,7 @@ public interface ReleaseOrBuilder * * *
- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -541,7 +571,7 @@ public interface ReleaseOrBuilder * * *
- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -553,7 +583,7 @@ public interface ReleaseOrBuilder * * *
- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -566,7 +596,7 @@ public interface ReleaseOrBuilder * * *
*/ + + /* nullable */ com.google.cloud.deploy.v1.Release.TargetRender getTargetRendersOrDefault( - java.lang.String key, com.google.cloud.deploy.v1.Release.TargetRender defaultValue); + java.lang.String key, + /* nullable */ + com.google.cloud.deploy.v1.Release.TargetRender defaultValue); /** * * diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseRenderEvent.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseRenderEvent.java new file mode 100644 index 0000000..4d6a314 --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseRenderEvent.java @@ -0,0 +1,824 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/release_render_payload.proto + +package com.google.cloud.deploy.v1; + +/** + * + * + *- * Output only. Snapshot of the parent pipeline's targets taken at release creation time. + * Output only. Snapshot of the targets taken at release creation time. ** *@@ -719,8 +749,12 @@ public interface ReleaseOrBuilder * map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; *
*/ + + /* nullable */ com.google.cloud.deploy.v1.TargetArtifact getTargetArtifactsOrDefault( - java.lang.String key, com.google.cloud.deploy.v1.TargetArtifact defaultValue); + java.lang.String key, + /* nullable */ + com.google.cloud.deploy.v1.TargetArtifact defaultValue); /** * * @@ -787,8 +821,12 @@ com.google.cloud.deploy.v1.TargetArtifact getTargetArtifactsOrDefault( * map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; *+ * Payload proto for "clouddeploy.googleapis.com/release_render" + * Platform Log event that describes the render status change. + *+ * + * Protobuf type {@code google.cloud.deploy.v1.ReleaseRenderEvent} + */ +public final class ReleaseRenderEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.ReleaseRenderEvent) + ReleaseRenderEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReleaseRenderEvent.newBuilder() to construct. + private ReleaseRenderEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ReleaseRenderEvent() { + message_ = ""; + release_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReleaseRenderEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReleaseRenderEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + release_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.ReleaseRenderPayloadProto + .internal_static_google_cloud_deploy_v1_ReleaseRenderEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.ReleaseRenderPayloadProto + .internal_static_google_cloud_deploy_v1_ReleaseRenderEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.ReleaseRenderEvent.class, + com.google.cloud.deploy.v1.ReleaseRenderEvent.Builder.class); + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object message_; + /** + * + * + *+ * Debug message for when a render transition occurs. Provides further + * details as rendering progresses through render states. + *+ * + *string message = 1;
+ * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * + * + *+ * Debug message for when a render transition occurs. Provides further + * details as rendering progresses through render states. + *+ * + *string message = 1;
+ * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RELEASE_FIELD_NUMBER = 2; + private volatile java.lang.Object release_; + /** + * + * + *+ * The name of the `Release`. + *+ * + *string release = 2;
+ * + * @return The release. + */ + @java.lang.Override + public java.lang.String getRelease() { + java.lang.Object ref = release_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + release_ = s; + return s; + } + } + /** + * + * + *+ * The name of the `Release`. + *+ * + *string release = 2;
+ * + * @return The bytes for release. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReleaseBytes() { + java.lang.Object ref = release_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + release_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(release_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, release_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(release_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, release_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.deploy.v1.ReleaseRenderEvent)) { + return super.equals(obj); + } + com.google.cloud.deploy.v1.ReleaseRenderEvent other = + (com.google.cloud.deploy.v1.ReleaseRenderEvent) obj; + + if (!getMessage().equals(other.getMessage())) return false; + if (!getRelease().equals(other.getRelease())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + RELEASE_FIELD_NUMBER; + hash = (53 * hash) + getRelease().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.deploy.v1.ReleaseRenderEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *+ * Payload proto for "clouddeploy.googleapis.com/release_render" + * Platform Log event that describes the render status change. + *+ * + * Protobuf type {@code google.cloud.deploy.v1.ReleaseRenderEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.ReleaseRenderEvent) + com.google.cloud.deploy.v1.ReleaseRenderEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.ReleaseRenderPayloadProto + .internal_static_google_cloud_deploy_v1_ReleaseRenderEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.ReleaseRenderPayloadProto + .internal_static_google_cloud_deploy_v1_ReleaseRenderEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.ReleaseRenderEvent.class, + com.google.cloud.deploy.v1.ReleaseRenderEvent.Builder.class); + } + + // Construct using com.google.cloud.deploy.v1.ReleaseRenderEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + message_ = ""; + + release_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.ReleaseRenderPayloadProto + .internal_static_google_cloud_deploy_v1_ReleaseRenderEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.ReleaseRenderEvent getDefaultInstanceForType() { + return com.google.cloud.deploy.v1.ReleaseRenderEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.deploy.v1.ReleaseRenderEvent build() { + com.google.cloud.deploy.v1.ReleaseRenderEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.ReleaseRenderEvent buildPartial() { + com.google.cloud.deploy.v1.ReleaseRenderEvent result = + new com.google.cloud.deploy.v1.ReleaseRenderEvent(this); + result.message_ = message_; + result.release_ = release_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.deploy.v1.ReleaseRenderEvent) { + return mergeFrom((com.google.cloud.deploy.v1.ReleaseRenderEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.deploy.v1.ReleaseRenderEvent other) { + if (other == com.google.cloud.deploy.v1.ReleaseRenderEvent.getDefaultInstance()) return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (!other.getRelease().isEmpty()) { + release_ = other.release_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.deploy.v1.ReleaseRenderEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.deploy.v1.ReleaseRenderEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object message_ = ""; + /** + * + * + * + * Debug message for when a render transition occurs. Provides further + * details as rendering progresses through render states. + *+ * + *string message = 1;
+ * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * Debug message for when a render transition occurs. Provides further + * details as rendering progresses through render states. + *+ * + *string message = 1;
+ * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * Debug message for when a render transition occurs. Provides further + * details as rendering progresses through render states. + *+ * + *string message = 1;
+ * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * Debug message for when a render transition occurs. Provides further + * details as rendering progresses through render states. + *+ * + *string message = 1;
+ * + * @return This builder for chaining. + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * + * + *+ * Debug message for when a render transition occurs. Provides further + * details as rendering progresses through render states. + *+ * + *string message = 1;
+ * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + private java.lang.Object release_ = ""; + /** + * + * + *+ * The name of the `Release`. + *+ * + *string release = 2;
+ * + * @return The release. + */ + public java.lang.String getRelease() { + java.lang.Object ref = release_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + release_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * The name of the `Release`. + *+ * + *string release = 2;
+ * + * @return The bytes for release. + */ + public com.google.protobuf.ByteString getReleaseBytes() { + java.lang.Object ref = release_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + release_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * The name of the `Release`. + *+ * + *string release = 2;
+ * + * @param value The release to set. + * @return This builder for chaining. + */ + public Builder setRelease(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + release_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * The name of the `Release`. + *+ * + *string release = 2;
+ * + * @return This builder for chaining. + */ + public Builder clearRelease() { + + release_ = getDefaultInstance().getRelease(); + onChanged(); + return this; + } + /** + * + * + *+ * The name of the `Release`. + *+ * + *string release = 2;
+ * + * @param value The bytes for release to set. + * @return This builder for chaining. + */ + public Builder setReleaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + release_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.ReleaseRenderEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.ReleaseRenderEvent) + private static final com.google.cloud.deploy.v1.ReleaseRenderEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.ReleaseRenderEvent(); + } + + public static com.google.cloud.deploy.v1.ReleaseRenderEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public ReleaseRenderEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReleaseRenderEvent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.ReleaseRenderEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseRenderEventOrBuilder.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseRenderEventOrBuilder.java new file mode 100644 index 0000000..0d48788 --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseRenderEventOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/release_render_payload.proto + +package com.google.cloud.deploy.v1; + +public interface ReleaseRenderEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.ReleaseRenderEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * Debug message for when a render transition occurs. Provides further + * details as rendering progresses through render states. + *+ * + *string message = 1;
+ * + * @return The message. + */ + java.lang.String getMessage(); + /** + * + * + *+ * Debug message for when a render transition occurs. Provides further + * details as rendering progresses through render states. + *+ * + *string message = 1;
+ * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *+ * The name of the `Release`. + *+ * + *string release = 2;
+ * + * @return The release. + */ + java.lang.String getRelease(); + /** + * + * + *+ * The name of the `Release`. + *+ * + *string release = 2;
+ * + * @return The bytes for release. + */ + com.google.protobuf.ByteString getReleaseBytes(); +} diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseRenderPayloadProto.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseRenderPayloadProto.java new file mode 100644 index 0000000..c4c9a5a --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseRenderPayloadProto.java @@ -0,0 +1,65 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/release_render_payload.proto + +package com.google.cloud.deploy.v1; + +public final class ReleaseRenderPayloadProto { + private ReleaseRenderPayloadProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_ReleaseRenderEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_ReleaseRenderEvent_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/deploy/v1/release_render_" + + "payload.proto\022\026google.cloud.deploy.v1\"6\n" + + "\022ReleaseRenderEvent\022\017\n\007message\030\001 \001(\t\022\017\n\007" + + "release\030\002 \001(\tBw\n\032com.google.cloud.deploy" + + ".v1B\031ReleaseRenderPayloadProtoP\001Z+ * Well-known deployment failures. + * + * No reason for failure is specified. + *+ * + *FAILURE_CAUSE_UNSPECIFIED = 0;
+ */ + FAILURE_CAUSE_UNSPECIFIED(0), + /** + * + * + *+ * Cloud Build is not available, either because it is not enabled or because + * Cloud Deploy has insufficient permissions. See [required + * permission](/deploy/docs/cloud-deploy-service-account#required_permissions). + *+ * + *CLOUD_BUILD_UNAVAILABLE = 1;
+ */ + CLOUD_BUILD_UNAVAILABLE(1), + /** + * + * + *+ * The deploy operation did not complete successfully; check Cloud Build + * logs. + *+ * + *EXECUTION_FAILED = 2;
+ */ + EXECUTION_FAILED(2), + /** + * + * + *+ * Deployment did not complete within the alloted time. + *+ * + *DEADLINE_EXCEEDED = 3;
+ */ + DEADLINE_EXCEEDED(3), + /** + * + * + *+ * Release is in a failed state. + *+ * + *RELEASE_FAILED = 4;
+ */ + RELEASE_FAILED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *+ * No reason for failure is specified. + *+ * + *FAILURE_CAUSE_UNSPECIFIED = 0;
+ */ + public static final int FAILURE_CAUSE_UNSPECIFIED_VALUE = 0; + /** + * + * + *+ * Cloud Build is not available, either because it is not enabled or because + * Cloud Deploy has insufficient permissions. See [required + * permission](/deploy/docs/cloud-deploy-service-account#required_permissions). + *+ * + *CLOUD_BUILD_UNAVAILABLE = 1;
+ */ + public static final int CLOUD_BUILD_UNAVAILABLE_VALUE = 1; + /** + * + * + *+ * The deploy operation did not complete successfully; check Cloud Build + * logs. + *+ * + *EXECUTION_FAILED = 2;
+ */ + public static final int EXECUTION_FAILED_VALUE = 2; + /** + * + * + *+ * Deployment did not complete within the alloted time. + *+ * + *DEADLINE_EXCEEDED = 3;
+ */ + public static final int DEADLINE_EXCEEDED_VALUE = 3; + /** + * + * + *+ * Release is in a failed state. + *+ * + *RELEASE_FAILED = 4;
+ */ + public static final int RELEASE_FAILED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FailureCause valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static FailureCause forNumber(int value) { + switch (value) { + case 0: + return FAILURE_CAUSE_UNSPECIFIED; + case 1: + return CLOUD_BUILD_UNAVAILABLE; + case 2: + return EXECUTION_FAILED; + case 3: + return DEADLINE_EXCEEDED; + case 4: + return RELEASE_FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMapinternalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap () { + public FailureCause findValueByNumber(int number) { + return FailureCause.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.deploy.v1.Rollout.getDescriptor().getEnumTypes().get(2); + } + + private static final FailureCause[] VALUES = values(); + + public static FailureCause valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FailureCause(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.deploy.v1.Rollout.FailureCause) + } + public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -957,7 +1174,7 @@ public int getAnnotationsCount() { @java.lang.Override public boolean containsAnnotations(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } @@ -999,7 +1216,7 @@ public java.util.Map getAnnotationsMap() { public java.lang.String getAnnotationsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1019,7 +1236,7 @@ public java.lang.String getAnnotationsOrDefault( @java.lang.Override public java.lang.String getAnnotationsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { @@ -1059,10 +1276,14 @@ public int getLabelsCount() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -1070,7 +1291,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1086,10 +1307,14 @@ public java.util.MapgetLabels() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -1104,10 +1329,14 @@ public java.util.MapgetLabelsMap() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -1115,7 +1344,7 @@ public java.util.MapgetLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1126,10 +1355,14 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -1137,7 +1370,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Mapmap = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1689,6 +1922,48 @@ public com.google.protobuf.ByteString getEtagBytes() { } } + public static final int DEPLOY_FAILURE_CAUSE_FIELD_NUMBER = 19; + private int deployFailureCause_; + /** + * + * + * + * Output only. The reason this deploy failed. This will always be unspecified while the + * deploy in progress. + *+ * + *+ * .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The enum numeric value on the wire for deployFailureCause. + */ + @java.lang.Override + public int getDeployFailureCauseValue() { + return deployFailureCause_; + } + /** + * + * + *+ * Output only. The reason this deploy failed. This will always be unspecified while the + * deploy in progress. + *+ * + *+ * .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The deployFailureCause. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.Rollout.FailureCause getDeployFailureCause() { + @SuppressWarnings("deprecation") + com.google.cloud.deploy.v1.Rollout.FailureCause result = + com.google.cloud.deploy.v1.Rollout.FailureCause.valueOf(deployFailureCause_); + return result == null ? com.google.cloud.deploy.v1.Rollout.FailureCause.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1751,6 +2026,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, targetId_); } + if (deployFailureCause_ + != com.google.cloud.deploy.v1.Rollout.FailureCause.FAILURE_CAUSE_UNSPECIFIED.getNumber()) { + output.writeEnum(19, deployFailureCause_); + } unknownFields.writeTo(output); } @@ -1824,6 +2103,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, targetId_); } + if (deployFailureCause_ + != com.google.cloud.deploy.v1.Rollout.FailureCause.FAILURE_CAUSE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, deployFailureCause_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1870,6 +2153,7 @@ public boolean equals(final java.lang.Object obj) { if (!getFailureReason().equals(other.getFailureReason())) return false; if (!getDeployingBuild().equals(other.getDeployingBuild())) return false; if (!getEtag().equals(other.getEtag())) return false; + if (deployFailureCause_ != other.deployFailureCause_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1927,6 +2211,8 @@ public int hashCode() { hash = (53 * hash) + getDeployingBuild().hashCode(); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + DEPLOY_FAILURE_CAUSE_FIELD_NUMBER; + hash = (53 * hash) + deployFailureCause_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2146,6 +2432,8 @@ public Builder clear() { etag_ = ""; + deployFailureCause_ = 0; + return this; } @@ -2211,6 +2499,7 @@ public com.google.cloud.deploy.v1.Rollout buildPartial() { result.failureReason_ = failureReason_; result.deployingBuild_ = deployingBuild_; result.etag_ = etag_; + result.deployFailureCause_ = deployFailureCause_; onBuilt(); return result; } @@ -2311,6 +2600,9 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.Rollout other) { etag_ = other.etag_; onChanged(); } + if (other.deployFailureCause_ != 0) { + setDeployFailureCauseValue(other.getDeployFailureCauseValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2718,7 +3010,7 @@ public int getAnnotationsCount() { @java.lang.Override public boolean containsAnnotations(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } @@ -2760,7 +3052,7 @@ public java.util.MapgetAnnotationsMap() { public java.lang.String getAnnotationsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2780,7 +3072,7 @@ public java.lang.String getAnnotationsOrDefault( @java.lang.Override public java.lang.String getAnnotationsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { @@ -2807,7 +3099,7 @@ public Builder clearAnnotations() { */ public Builder removeAnnotations(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableAnnotations().getMutableMap().remove(key); return this; @@ -2831,11 +3123,12 @@ public java.util.Map getMutableAnnotations() */ public Builder putAnnotations(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableAnnotations().getMutableMap().put(key, value); return this; } @@ -2887,10 +3180,14 @@ public int getLabelsCount() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -2898,7 +3195,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2914,10 +3211,14 @@ public java.util.MapgetLabels() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -2932,10 +3233,14 @@ public java.util.MapgetLabelsMap() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -2944,7 +3249,7 @@ public java.util.MapgetLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2955,10 +3260,14 @@ public java.lang.String getLabelsOrDefault( * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -2966,7 +3275,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Mapmap = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2985,17 +3294,21 @@ public Builder clearLabels() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
*/ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -3011,21 +3324,26 @@ public java.util.MapgetMutableLabels() { * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
*/ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } @@ -3035,10 +3353,14 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { ** Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -4719,6 +5041,112 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { return this; } + private int deployFailureCause_ = 0; + /** + * + * + *+ * Output only. The reason this deploy failed. This will always be unspecified while the + * deploy in progress. + *+ * + *+ * .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The enum numeric value on the wire for deployFailureCause. + */ + @java.lang.Override + public int getDeployFailureCauseValue() { + return deployFailureCause_; + } + /** + * + * + *+ * Output only. The reason this deploy failed. This will always be unspecified while the + * deploy in progress. + *+ * + *+ * .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @param value The enum numeric value on the wire for deployFailureCause to set. + * @return This builder for chaining. + */ + public Builder setDeployFailureCauseValue(int value) { + + deployFailureCause_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * Output only. The reason this deploy failed. This will always be unspecified while the + * deploy in progress. + *+ * + *+ * .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The deployFailureCause. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.Rollout.FailureCause getDeployFailureCause() { + @SuppressWarnings("deprecation") + com.google.cloud.deploy.v1.Rollout.FailureCause result = + com.google.cloud.deploy.v1.Rollout.FailureCause.valueOf(deployFailureCause_); + return result == null ? com.google.cloud.deploy.v1.Rollout.FailureCause.UNRECOGNIZED : result; + } + /** + * + * + *+ * Output only. The reason this deploy failed. This will always be unspecified while the + * deploy in progress. + *+ * + *+ * .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @param value The deployFailureCause to set. + * @return This builder for chaining. + */ + public Builder setDeployFailureCause(com.google.cloud.deploy.v1.Rollout.FailureCause value) { + if (value == null) { + throw new NullPointerException(); + } + + deployFailureCause_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *+ * Output only. The reason this deploy failed. This will always be unspecified while the + * deploy in progress. + *+ * + *+ * .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return This builder for chaining. + */ + public Builder clearDeployFailureCause() { + + deployFailureCause_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutName.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutName.java index fea4ebf..3d32ae3 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutName.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutNotificationEvent.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutNotificationEvent.java new file mode 100644 index 0000000..689ecae --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutNotificationEvent.java @@ -0,0 +1,1506 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/rollout_notification_payload.proto + +package com.google.cloud.deploy.v1; + +/** + * + * + *+ * Payload proto for "clouddeploy.googleapis.com/rollout_notification" + * Platform Log event that describes the failure to send rollout status change + * Pub/Sub notification. + *+ * + * Protobuf type {@code google.cloud.deploy.v1.RolloutNotificationEvent} + */ +public final class RolloutNotificationEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.RolloutNotificationEvent) + RolloutNotificationEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use RolloutNotificationEvent.newBuilder() to construct. + private RolloutNotificationEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private RolloutNotificationEvent() { + message_ = ""; + pipelineUid_ = ""; + releaseUid_ = ""; + rollout_ = ""; + type_ = 0; + targetId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RolloutNotificationEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RolloutNotificationEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + pipelineUid_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + releaseUid_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + rollout_ = s; + break; + } + case 40: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + targetId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.RolloutNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_RolloutNotificationEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.RolloutNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_RolloutNotificationEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.RolloutNotificationEvent.class, + com.google.cloud.deploy.v1.RolloutNotificationEvent.Builder.class); + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object message_; + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PIPELINE_UID_FIELD_NUMBER = 2; + private volatile java.lang.Object pipelineUid_; + /** + * + * + *+ * Unique identifier of the `DeliveryPipeline`. + *+ * + *string pipeline_uid = 2;
+ * + * @return The pipelineUid. + */ + @java.lang.Override + public java.lang.String getPipelineUid() { + java.lang.Object ref = pipelineUid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pipelineUid_ = s; + return s; + } + } + /** + * + * + *+ * Unique identifier of the `DeliveryPipeline`. + *+ * + *string pipeline_uid = 2;
+ * + * @return The bytes for pipelineUid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPipelineUidBytes() { + java.lang.Object ref = pipelineUid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pipelineUid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RELEASE_UID_FIELD_NUMBER = 3; + private volatile java.lang.Object releaseUid_; + /** + * + * + *+ * Unique identifier of the `Release`. + *+ * + *string release_uid = 3;
+ * + * @return The releaseUid. + */ + @java.lang.Override + public java.lang.String getReleaseUid() { + java.lang.Object ref = releaseUid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + releaseUid_ = s; + return s; + } + } + /** + * + * + *+ * Unique identifier of the `Release`. + *+ * + *string release_uid = 3;
+ * + * @return The bytes for releaseUid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReleaseUidBytes() { + java.lang.Object ref = releaseUid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + releaseUid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLLOUT_FIELD_NUMBER = 4; + private volatile java.lang.Object rollout_; + /** + * + * + *+ * The name of the `Rollout`. + *+ * + *string rollout = 4;
+ * + * @return The rollout. + */ + @java.lang.Override + public java.lang.String getRollout() { + java.lang.Object ref = rollout_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rollout_ = s; + return s; + } + } + /** + * + * + *+ * The name of the `Rollout`. + *+ * + *string rollout = 4;
+ * + * @return The bytes for rollout. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRolloutBytes() { + java.lang.Object ref = rollout_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rollout_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 5; + private int type_; + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 5;
+ * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 5;
+ * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.Type getType() { + @SuppressWarnings("deprecation") + com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.valueOf(type_); + return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; + } + + public static final int TARGET_ID_FIELD_NUMBER = 6; + private volatile java.lang.Object targetId_; + /** + * + * + *+ * ID of the `Target` that the rollout is deployed to. + *+ * + *string target_id = 6;
+ * + * @return The targetId. + */ + @java.lang.Override + public java.lang.String getTargetId() { + java.lang.Object ref = targetId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetId_ = s; + return s; + } + } + /** + * + * + *+ * ID of the `Target` that the rollout is deployed to. + *+ * + *string target_id = 6;
+ * + * @return The bytes for targetId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetIdBytes() { + java.lang.Object ref = targetId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pipelineUid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pipelineUid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseUid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, releaseUid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rollout_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, rollout_); + } + if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, targetId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pipelineUid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pipelineUid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseUid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, releaseUid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rollout_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, rollout_); + } + if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, targetId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.deploy.v1.RolloutNotificationEvent)) { + return super.equals(obj); + } + com.google.cloud.deploy.v1.RolloutNotificationEvent other = + (com.google.cloud.deploy.v1.RolloutNotificationEvent) obj; + + if (!getMessage().equals(other.getMessage())) return false; + if (!getPipelineUid().equals(other.getPipelineUid())) return false; + if (!getReleaseUid().equals(other.getReleaseUid())) return false; + if (!getRollout().equals(other.getRollout())) return false; + if (type_ != other.type_) return false; + if (!getTargetId().equals(other.getTargetId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + PIPELINE_UID_FIELD_NUMBER; + hash = (53 * hash) + getPipelineUid().hashCode(); + hash = (37 * hash) + RELEASE_UID_FIELD_NUMBER; + hash = (53 * hash) + getReleaseUid().hashCode(); + hash = (37 * hash) + ROLLOUT_FIELD_NUMBER; + hash = (53 * hash) + getRollout().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + TARGET_ID_FIELD_NUMBER; + hash = (53 * hash) + getTargetId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.deploy.v1.RolloutNotificationEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *+ * Payload proto for "clouddeploy.googleapis.com/rollout_notification" + * Platform Log event that describes the failure to send rollout status change + * Pub/Sub notification. + *+ * + * Protobuf type {@code google.cloud.deploy.v1.RolloutNotificationEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.RolloutNotificationEvent) + com.google.cloud.deploy.v1.RolloutNotificationEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.RolloutNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_RolloutNotificationEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.RolloutNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_RolloutNotificationEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.RolloutNotificationEvent.class, + com.google.cloud.deploy.v1.RolloutNotificationEvent.Builder.class); + } + + // Construct using com.google.cloud.deploy.v1.RolloutNotificationEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + message_ = ""; + + pipelineUid_ = ""; + + releaseUid_ = ""; + + rollout_ = ""; + + type_ = 0; + + targetId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.RolloutNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_RolloutNotificationEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.RolloutNotificationEvent getDefaultInstanceForType() { + return com.google.cloud.deploy.v1.RolloutNotificationEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.deploy.v1.RolloutNotificationEvent build() { + com.google.cloud.deploy.v1.RolloutNotificationEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.RolloutNotificationEvent buildPartial() { + com.google.cloud.deploy.v1.RolloutNotificationEvent result = + new com.google.cloud.deploy.v1.RolloutNotificationEvent(this); + result.message_ = message_; + result.pipelineUid_ = pipelineUid_; + result.releaseUid_ = releaseUid_; + result.rollout_ = rollout_; + result.type_ = type_; + result.targetId_ = targetId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.deploy.v1.RolloutNotificationEvent) { + return mergeFrom((com.google.cloud.deploy.v1.RolloutNotificationEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.deploy.v1.RolloutNotificationEvent other) { + if (other == com.google.cloud.deploy.v1.RolloutNotificationEvent.getDefaultInstance()) + return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (!other.getPipelineUid().isEmpty()) { + pipelineUid_ = other.pipelineUid_; + onChanged(); + } + if (!other.getReleaseUid().isEmpty()) { + releaseUid_ = other.releaseUid_; + onChanged(); + } + if (!other.getRollout().isEmpty()) { + rollout_ = other.rollout_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getTargetId().isEmpty()) { + targetId_ = other.targetId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.deploy.v1.RolloutNotificationEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.deploy.v1.RolloutNotificationEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object message_ = ""; + /** + * + * + * + * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return This builder for chaining. + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + private java.lang.Object pipelineUid_ = ""; + /** + * + * + *+ * Unique identifier of the `DeliveryPipeline`. + *+ * + *string pipeline_uid = 2;
+ * + * @return The pipelineUid. + */ + public java.lang.String getPipelineUid() { + java.lang.Object ref = pipelineUid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pipelineUid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * Unique identifier of the `DeliveryPipeline`. + *+ * + *string pipeline_uid = 2;
+ * + * @return The bytes for pipelineUid. + */ + public com.google.protobuf.ByteString getPipelineUidBytes() { + java.lang.Object ref = pipelineUid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pipelineUid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * Unique identifier of the `DeliveryPipeline`. + *+ * + *string pipeline_uid = 2;
+ * + * @param value The pipelineUid to set. + * @return This builder for chaining. + */ + public Builder setPipelineUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pipelineUid_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * Unique identifier of the `DeliveryPipeline`. + *+ * + *string pipeline_uid = 2;
+ * + * @return This builder for chaining. + */ + public Builder clearPipelineUid() { + + pipelineUid_ = getDefaultInstance().getPipelineUid(); + onChanged(); + return this; + } + /** + * + * + *+ * Unique identifier of the `DeliveryPipeline`. + *+ * + *string pipeline_uid = 2;
+ * + * @param value The bytes for pipelineUid to set. + * @return This builder for chaining. + */ + public Builder setPipelineUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pipelineUid_ = value; + onChanged(); + return this; + } + + private java.lang.Object releaseUid_ = ""; + /** + * + * + *+ * Unique identifier of the `Release`. + *+ * + *string release_uid = 3;
+ * + * @return The releaseUid. + */ + public java.lang.String getReleaseUid() { + java.lang.Object ref = releaseUid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + releaseUid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * Unique identifier of the `Release`. + *+ * + *string release_uid = 3;
+ * + * @return The bytes for releaseUid. + */ + public com.google.protobuf.ByteString getReleaseUidBytes() { + java.lang.Object ref = releaseUid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + releaseUid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * Unique identifier of the `Release`. + *+ * + *string release_uid = 3;
+ * + * @param value The releaseUid to set. + * @return This builder for chaining. + */ + public Builder setReleaseUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + releaseUid_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * Unique identifier of the `Release`. + *+ * + *string release_uid = 3;
+ * + * @return This builder for chaining. + */ + public Builder clearReleaseUid() { + + releaseUid_ = getDefaultInstance().getReleaseUid(); + onChanged(); + return this; + } + /** + * + * + *+ * Unique identifier of the `Release`. + *+ * + *string release_uid = 3;
+ * + * @param value The bytes for releaseUid to set. + * @return This builder for chaining. + */ + public Builder setReleaseUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + releaseUid_ = value; + onChanged(); + return this; + } + + private java.lang.Object rollout_ = ""; + /** + * + * + *+ * The name of the `Rollout`. + *+ * + *string rollout = 4;
+ * + * @return The rollout. + */ + public java.lang.String getRollout() { + java.lang.Object ref = rollout_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rollout_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * The name of the `Rollout`. + *+ * + *string rollout = 4;
+ * + * @return The bytes for rollout. + */ + public com.google.protobuf.ByteString getRolloutBytes() { + java.lang.Object ref = rollout_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rollout_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * The name of the `Rollout`. + *+ * + *string rollout = 4;
+ * + * @param value The rollout to set. + * @return This builder for chaining. + */ + public Builder setRollout(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rollout_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * The name of the `Rollout`. + *+ * + *string rollout = 4;
+ * + * @return This builder for chaining. + */ + public Builder clearRollout() { + + rollout_ = getDefaultInstance().getRollout(); + onChanged(); + return this; + } + /** + * + * + *+ * The name of the `Rollout`. + *+ * + *string rollout = 4;
+ * + * @param value The bytes for rollout to set. + * @return This builder for chaining. + */ + public Builder setRolloutBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rollout_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 5;
+ * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 5;
+ * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 5;
+ * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.Type getType() { + @SuppressWarnings("deprecation") + com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.valueOf(type_); + return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; + } + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 5;
+ * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.deploy.v1.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 5;
+ * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object targetId_ = ""; + /** + * + * + *+ * ID of the `Target` that the rollout is deployed to. + *+ * + *string target_id = 6;
+ * + * @return The targetId. + */ + public java.lang.String getTargetId() { + java.lang.Object ref = targetId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * ID of the `Target` that the rollout is deployed to. + *+ * + *string target_id = 6;
+ * + * @return The bytes for targetId. + */ + public com.google.protobuf.ByteString getTargetIdBytes() { + java.lang.Object ref = targetId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * ID of the `Target` that the rollout is deployed to. + *+ * + *string target_id = 6;
+ * + * @param value The targetId to set. + * @return This builder for chaining. + */ + public Builder setTargetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + targetId_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * ID of the `Target` that the rollout is deployed to. + *+ * + *string target_id = 6;
+ * + * @return This builder for chaining. + */ + public Builder clearTargetId() { + + targetId_ = getDefaultInstance().getTargetId(); + onChanged(); + return this; + } + /** + * + * + *+ * ID of the `Target` that the rollout is deployed to. + *+ * + *string target_id = 6;
+ * + * @param value The bytes for targetId to set. + * @return This builder for chaining. + */ + public Builder setTargetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + targetId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.RolloutNotificationEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.RolloutNotificationEvent) + private static final com.google.cloud.deploy.v1.RolloutNotificationEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.RolloutNotificationEvent(); + } + + public static com.google.cloud.deploy.v1.RolloutNotificationEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public RolloutNotificationEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RolloutNotificationEvent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.RolloutNotificationEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutNotificationEventOrBuilder.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutNotificationEventOrBuilder.java new file mode 100644 index 0000000..a845686 --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutNotificationEventOrBuilder.java @@ -0,0 +1,175 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/rollout_notification_payload.proto + +package com.google.cloud.deploy.v1; + +public interface RolloutNotificationEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.RolloutNotificationEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The message. + */ + java.lang.String getMessage(); + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *+ * Unique identifier of the `DeliveryPipeline`. + *+ * + *string pipeline_uid = 2;
+ * + * @return The pipelineUid. + */ + java.lang.String getPipelineUid(); + /** + * + * + *+ * Unique identifier of the `DeliveryPipeline`. + *+ * + *string pipeline_uid = 2;
+ * + * @return The bytes for pipelineUid. + */ + com.google.protobuf.ByteString getPipelineUidBytes(); + + /** + * + * + *+ * Unique identifier of the `Release`. + *+ * + *string release_uid = 3;
+ * + * @return The releaseUid. + */ + java.lang.String getReleaseUid(); + /** + * + * + *+ * Unique identifier of the `Release`. + *+ * + *string release_uid = 3;
+ * + * @return The bytes for releaseUid. + */ + com.google.protobuf.ByteString getReleaseUidBytes(); + + /** + * + * + *+ * The name of the `Rollout`. + *+ * + *string rollout = 4;
+ * + * @return The rollout. + */ + java.lang.String getRollout(); + /** + * + * + *+ * The name of the `Rollout`. + *+ * + *string rollout = 4;
+ * + * @return The bytes for rollout. + */ + com.google.protobuf.ByteString getRolloutBytes(); + + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 5;
+ * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 5;
+ * + * @return The type. + */ + com.google.cloud.deploy.v1.Type getType(); + + /** + * + * + *+ * ID of the `Target` that the rollout is deployed to. + *+ * + *string target_id = 6;
+ * + * @return The targetId. + */ + java.lang.String getTargetId(); + /** + * + * + *+ * ID of the `Target` that the rollout is deployed to. + *+ * + *string target_id = 6;
+ * + * @return The bytes for targetId. + */ + com.google.protobuf.ByteString getTargetIdBytes(); +} diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutNotificationPayloadProto.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutNotificationPayloadProto.java new file mode 100644 index 0000000..9c98559 --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutNotificationPayloadProto.java @@ -0,0 +1,73 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/rollout_notification_payload.proto + +package com.google.cloud.deploy.v1; + +public final class RolloutNotificationPayloadProto { + private RolloutNotificationPayloadProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_RolloutNotificationEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_RolloutNotificationEvent_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/deploy/v1/rollout_notific" + + "ation_payload.proto\022\026google.cloud.deploy" + + ".v1\032&google/cloud/deploy/v1/log_enums.pr" + + "oto\"\246\001\n\030RolloutNotificationEvent\022\017\n\007mess" + + "age\030\001 \001(\t\022\024\n\014pipeline_uid\030\002 \001(\t\022\023\n\013relea" + + "se_uid\030\003 \001(\t\022\017\n\007rollout\030\004 \001(\t\022*\n\004type\030\005 " + + "\001(\0162\034.google.cloud.deploy.v1.Type\022\021\n\ttar" + + "get_id\030\006 \001(\tB}\n\032com.google.cloud.deploy." + + "v1B\037RolloutNotificationPayloadProtoP\001Zmap<string, string> annotations = 4; */ - java.lang.String getAnnotationsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * @@ -179,10 +184,14 @@ public interface RolloutOrBuilder * * Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -194,10 +203,14 @@ public interface RolloutOrBuilder ** Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -212,10 +225,14 @@ public interface RolloutOrBuilder ** Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -227,25 +244,38 @@ public interface RolloutOrBuilder ** Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
*/ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * ** Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 5;
@@ -617,4 +647,35 @@ public interface RolloutOrBuilder * @return The bytes for etag. */ com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *+ * Output only. The reason this deploy failed. This will always be unspecified while the + * deploy in progress. + *+ * + *+ * .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The enum numeric value on the wire for deployFailureCause. + */ + int getDeployFailureCauseValue(); + /** + * + * + *+ * Output only. The reason this deploy failed. This will always be unspecified while the + * deploy in progress. + *+ * + *+ * .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The deployFailureCause. + */ + com.google.cloud.deploy.v1.Rollout.FailureCause getDeployFailureCause(); } diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SerialPipeline.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SerialPipeline.java index 7ab3738..5d1ef0f 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SerialPipeline.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SerialPipeline.java @@ -92,6 +92,8 @@ private SerialPipeline( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldVersion.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldVersion.java index d3c2235..b22c002 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldVersion.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldVersion.java @@ -102,6 +102,8 @@ private SkaffoldVersion( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Stage.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Stage.java index 655e4c6..a5292a0 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Stage.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Stage.java @@ -100,6 +100,8 @@ private Stage( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -134,9 +136,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * The target_id to which this stage points. This field refers exclusively to * the last segment of a target name. For example, this field would just be * `my-target` (rather than - * `projects/project/deliveryPipelines/pipeline/targets/my-target`). The - * parent `DeliveryPipeline` of the `Target` is inferred to be the parent - * `DeliveryPipeline` of the `Release` in which this `Stage` lives. + * `projects/project/locations/location/targets/my-target`). The location of + * the `Target` is inferred to be the same as the location of the + * `DeliveryPipeline` that contains this `Stage`. *string target_id = 1;
@@ -162,9 +164,9 @@ public java.lang.String getTargetId() { * The target_id to which this stage points. This field refers exclusively to * the last segment of a target name. For example, this field would just be * `my-target` (rather than - * `projects/project/deliveryPipelines/pipeline/targets/my-target`). The - * parent `DeliveryPipeline` of the `Target` is inferred to be the parent - * `DeliveryPipeline` of the `Release` in which this `Stage` lives. + * `projects/project/locations/location/targets/my-target`). The location of + * the `Target` is inferred to be the same as the location of the + * `DeliveryPipeline` that contains this `Stage`. *string target_id = 1;
@@ -606,9 +608,9 @@ public Builder mergeFrom( * The target_id to which this stage points. This field refers exclusively to * the last segment of a target name. For example, this field would just be * `my-target` (rather than - * `projects/project/deliveryPipelines/pipeline/targets/my-target`). The - * parent `DeliveryPipeline` of the `Target` is inferred to be the parent - * `DeliveryPipeline` of the `Release` in which this `Stage` lives. + * `projects/project/locations/location/targets/my-target`). The location of + * the `Target` is inferred to be the same as the location of the + * `DeliveryPipeline` that contains this `Stage`. *string target_id = 1;
@@ -633,9 +635,9 @@ public java.lang.String getTargetId() { * The target_id to which this stage points. This field refers exclusively to * the last segment of a target name. For example, this field would just be * `my-target` (rather than - * `projects/project/deliveryPipelines/pipeline/targets/my-target`). The - * parent `DeliveryPipeline` of the `Target` is inferred to be the parent - * `DeliveryPipeline` of the `Release` in which this `Stage` lives. + * `projects/project/locations/location/targets/my-target`). The location of + * the `Target` is inferred to be the same as the location of the + * `DeliveryPipeline` that contains this `Stage`. *string target_id = 1;
@@ -660,9 +662,9 @@ public com.google.protobuf.ByteString getTargetIdBytes() { * The target_id to which this stage points. This field refers exclusively to * the last segment of a target name. For example, this field would just be * `my-target` (rather than - * `projects/project/deliveryPipelines/pipeline/targets/my-target`). The - * parent `DeliveryPipeline` of the `Target` is inferred to be the parent - * `DeliveryPipeline` of the `Release` in which this `Stage` lives. + * `projects/project/locations/location/targets/my-target`). The location of + * the `Target` is inferred to be the same as the location of the + * `DeliveryPipeline` that contains this `Stage`. *string target_id = 1;
@@ -686,9 +688,9 @@ public Builder setTargetId(java.lang.String value) { * The target_id to which this stage points. This field refers exclusively to * the last segment of a target name. For example, this field would just be * `my-target` (rather than - * `projects/project/deliveryPipelines/pipeline/targets/my-target`). The - * parent `DeliveryPipeline` of the `Target` is inferred to be the parent - * `DeliveryPipeline` of the `Release` in which this `Stage` lives. + * `projects/project/locations/location/targets/my-target`). The location of + * the `Target` is inferred to be the same as the location of the + * `DeliveryPipeline` that contains this `Stage`. *string target_id = 1;
@@ -708,9 +710,9 @@ public Builder clearTargetId() { * The target_id to which this stage points. This field refers exclusively to * the last segment of a target name. For example, this field would just be * `my-target` (rather than - * `projects/project/deliveryPipelines/pipeline/targets/my-target`). The - * parent `DeliveryPipeline` of the `Target` is inferred to be the parent - * `DeliveryPipeline` of the `Release` in which this `Stage` lives. + * `projects/project/locations/location/targets/my-target`). The location of + * the `Target` is inferred to be the same as the location of the + * `DeliveryPipeline` that contains this `Stage`. *string target_id = 1;
diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StageOrBuilder.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StageOrBuilder.java index abb2bb4..790cca1 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StageOrBuilder.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StageOrBuilder.java @@ -30,9 +30,9 @@ public interface StageOrBuilder * The target_id to which this stage points. This field refers exclusively to * the last segment of a target name. For example, this field would just be * `my-target` (rather than - * `projects/project/deliveryPipelines/pipeline/targets/my-target`). The - * parent `DeliveryPipeline` of the `Target` is inferred to be the parent - * `DeliveryPipeline` of the `Release` in which this `Stage` lives. + * `projects/project/locations/location/targets/my-target`). The location of + * the `Target` is inferred to be the same as the location of the + * `DeliveryPipeline` that contains this `Stage`. *string target_id = 1;
@@ -47,9 +47,9 @@ public interface StageOrBuilder * The target_id to which this stage points. This field refers exclusively to * the last segment of a target name. For example, this field would just be * `my-target` (rather than - * `projects/project/deliveryPipelines/pipeline/targets/my-target`). The - * parent `DeliveryPipeline` of the `Target` is inferred to be the parent - * `DeliveryPipeline` of the `Release` in which this `Stage` lives. + * `projects/project/locations/location/targets/my-target`). The location of + * the `Target` is inferred to be the same as the location of the + * `DeliveryPipeline` that contains this `Stage`. *string target_id = 1;
diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Target.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Target.java index 0921e14..773b848 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Target.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Target.java @@ -205,6 +205,23 @@ private Target( com.google.cloud.deploy.v1.ExecutionConfig.parser(), extensionRegistry)); break; } + case 138: + { + com.google.cloud.deploy.v1.AnthosCluster.Builder subBuilder = null; + if (deploymentTargetCase_ == 17) { + subBuilder = + ((com.google.cloud.deploy.v1.AnthosCluster) deploymentTarget_).toBuilder(); + } + deploymentTarget_ = + input.readMessage( + com.google.cloud.deploy.v1.AnthosCluster.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.deploy.v1.AnthosCluster) deploymentTarget_); + deploymentTarget_ = subBuilder.buildPartial(); + } + deploymentTargetCase_ = 17; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -216,6 +233,8 @@ private Target( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -263,6 +282,7 @@ public enum DeploymentTargetCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GKE(15), + ANTHOS_CLUSTER(17), DEPLOYMENTTARGET_NOT_SET(0); private final int value; @@ -283,6 +303,8 @@ public static DeploymentTargetCase forNumber(int value) { switch (value) { case 15: return GKE; + case 17: + return ANTHOS_CLUSTER; case 0: return DEPLOYMENTTARGET_NOT_SET; default: @@ -305,8 +327,8 @@ public DeploymentTargetCase getDeploymentTargetCase() { * * *- * Optional. Name of the `Target`. Format is projects/{project}/locations/{location}/ - * deliveryPipelines/{deliveryPipeline}/targets/[a-z][a-z0-9\-]{0,62}. + * Optional. Name of the `Target`. Format is + * projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}. ** *string name = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -329,8 +351,8 @@ public java.lang.String getName() { * * *- * Optional. Name of the `Target`. Format is projects/{project}/locations/{location}/ - * deliveryPipelines/{deliveryPipeline}/targets/[a-z][a-z0-9\-]{0,62}. + * Optional. Name of the `Target`. Format is + * projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}. ** *string name = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -539,7 +561,7 @@ public int getAnnotationsCount() { @java.lang.Override public boolean containsAnnotations(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } @@ -583,7 +605,7 @@ public java.util.MapgetAnnotationsMap() { public java.lang.String getAnnotationsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -604,7 +626,7 @@ public java.lang.String getAnnotationsOrDefault( @java.lang.Override public java.lang.String getAnnotationsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { @@ -644,10 +666,14 @@ public int getLabelsCount() { * * Optional. Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -655,7 +681,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -671,10 +697,14 @@ public java.util.MapgetLabels() { * * Optional. Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -689,10 +719,14 @@ public java.util.MapgetLabelsMap() { * * Optional. Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -700,7 +734,7 @@ public java.util.MapgetLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -711,10 +745,14 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * * Optional. Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -722,7 +760,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Mapmap = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -898,6 +936,57 @@ public com.google.cloud.deploy.v1.GkeClusterOrBuilder getGkeOrBuilder() { return com.google.cloud.deploy.v1.GkeCluster.getDefaultInstance(); } + public static final int ANTHOS_CLUSTER_FIELD_NUMBER = 17; + /** + * + * + * + * Information specifying an Anthos Cluster. + *+ * + *.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17;
+ * + * @return Whether the anthosCluster field is set. + */ + @java.lang.Override + public boolean hasAnthosCluster() { + return deploymentTargetCase_ == 17; + } + /** + * + * + *+ * Information specifying an Anthos Cluster. + *+ * + *.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17;
+ * + * @return The anthosCluster. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.AnthosCluster getAnthosCluster() { + if (deploymentTargetCase_ == 17) { + return (com.google.cloud.deploy.v1.AnthosCluster) deploymentTarget_; + } + return com.google.cloud.deploy.v1.AnthosCluster.getDefaultInstance(); + } + /** + * + * + *+ * Information specifying an Anthos Cluster. + *+ * + *.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17;
+ */ + @java.lang.Override + public com.google.cloud.deploy.v1.AnthosClusterOrBuilder getAnthosClusterOrBuilder() { + if (deploymentTargetCase_ == 17) { + return (com.google.cloud.deploy.v1.AnthosCluster) deploymentTarget_; + } + return com.google.cloud.deploy.v1.AnthosCluster.getDefaultInstance(); + } + public static final int ETAG_FIELD_NUMBER = 12; private volatile java.lang.Object etag_; /** @@ -1099,6 +1188,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < executionConfigs_.size(); i++) { output.writeMessage(16, executionConfigs_.get(i)); } + if (deploymentTargetCase_ == 17) { + output.writeMessage(17, (com.google.cloud.deploy.v1.AnthosCluster) deploymentTarget_); + } unknownFields.writeTo(output); } @@ -1161,6 +1253,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, executionConfigs_.get(i)); } + if (deploymentTargetCase_ == 17) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 17, (com.google.cloud.deploy.v1.AnthosCluster) deploymentTarget_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1198,6 +1295,9 @@ public boolean equals(final java.lang.Object obj) { case 15: if (!getGke().equals(other.getGke())) return false; break; + case 17: + if (!getAnthosCluster().equals(other.getAnthosCluster())) return false; + break; case 0: default: } @@ -1249,6 +1349,10 @@ public int hashCode() { hash = (37 * hash) + GKE_FIELD_NUMBER; hash = (53 * hash) + getGke().hashCode(); break; + case 17: + hash = (37 * hash) + ANTHOS_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getAnthosCluster().hashCode(); + break; case 0: default: } @@ -1511,6 +1615,13 @@ public com.google.cloud.deploy.v1.Target buildPartial() { result.deploymentTarget_ = gkeBuilder_.build(); } } + if (deploymentTargetCase_ == 17) { + if (anthosClusterBuilder_ == null) { + result.deploymentTarget_ = deploymentTarget_; + } else { + result.deploymentTarget_ = anthosClusterBuilder_.build(); + } + } result.etag_ = etag_; if (executionConfigsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { @@ -1635,6 +1746,11 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.Target other) { mergeGke(other.getGke()); break; } + case ANTHOS_CLUSTER: + { + mergeAnthosCluster(other.getAnthosCluster()); + break; + } case DEPLOYMENTTARGET_NOT_SET: { break; @@ -1690,8 +1806,8 @@ public Builder clearDeploymentTarget() { * * *- * Optional. Name of the `Target`. Format is projects/{project}/locations/{location}/ - * deliveryPipelines/{deliveryPipeline}/targets/[a-z][a-z0-9\-]{0,62}. + * Optional. Name of the `Target`. Format is + * projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}. ** *string name = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -1713,8 +1829,8 @@ public java.lang.String getName() { * * *- * Optional. Name of the `Target`. Format is projects/{project}/locations/{location}/ - * deliveryPipelines/{deliveryPipeline}/targets/[a-z][a-z0-9\-]{0,62}. + * Optional. Name of the `Target`. Format is + * projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}. ** *string name = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -1736,8 +1852,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *- * Optional. Name of the `Target`. Format is projects/{project}/locations/{location}/ - * deliveryPipelines/{deliveryPipeline}/targets/[a-z][a-z0-9\-]{0,62}. + * Optional. Name of the `Target`. Format is + * projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}. ** *string name = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -1758,8 +1874,8 @@ public Builder setName(java.lang.String value) { * * *- * Optional. Name of the `Target`. Format is projects/{project}/locations/{location}/ - * deliveryPipelines/{deliveryPipeline}/targets/[a-z][a-z0-9\-]{0,62}. + * Optional. Name of the `Target`. Format is + * projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}. ** *string name = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -1776,8 +1892,8 @@ public Builder clearName() { * * *- * Optional. Name of the `Target`. Format is projects/{project}/locations/{location}/ - * deliveryPipelines/{deliveryPipeline}/targets/[a-z][a-z0-9\-]{0,62}. + * Optional. Name of the `Target`. Format is + * projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}. ** *string name = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -2158,7 +2274,7 @@ public int getAnnotationsCount() { @java.lang.Override public boolean containsAnnotations(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } @@ -2202,7 +2318,7 @@ public java.util.MapgetAnnotationsMap() { public java.lang.String getAnnotationsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2223,7 +2339,7 @@ public java.lang.String getAnnotationsOrDefault( @java.lang.Override public java.lang.String getAnnotationsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { @@ -2251,7 +2367,7 @@ public Builder clearAnnotations() { */ public Builder removeAnnotations(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableAnnotations().getMutableMap().remove(key); return this; @@ -2276,11 +2392,12 @@ public java.util.Map getMutableAnnotations() */ public Builder putAnnotations(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableAnnotations().getMutableMap().put(key, value); return this; } @@ -2333,10 +2450,14 @@ public int getLabelsCount() { * * Optional. Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -2344,7 +2465,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2360,10 +2481,14 @@ public java.util.MapgetLabels() { * * Optional. Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -2378,10 +2503,14 @@ public java.util.MapgetLabelsMap() { * * Optional. Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -2390,7 +2519,7 @@ public java.util.MapgetLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2401,10 +2530,14 @@ public java.lang.String getLabelsOrDefault( * * Optional. Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -2412,7 +2545,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Mapmap = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2431,17 +2564,21 @@ public Builder clearLabels() { * * Optional. Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
*/ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2457,21 +2594,26 @@ public java.util.MapgetMutableLabels() { * * Optional. Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
*/ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } @@ -2481,10 +2623,14 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { ** Optional. Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -3059,8 +3205,9 @@ public Builder mergeGke(com.google.cloud.deploy.v1.GkeCluster value) { } else { if (deploymentTargetCase_ == 15) { gkeBuilder_.mergeFrom(value); + } else { + gkeBuilder_.setMessage(value); } - gkeBuilder_.setMessage(value); } deploymentTargetCase_ = 15; return this; @@ -3156,6 +3303,216 @@ public com.google.cloud.deploy.v1.GkeClusterOrBuilder getGkeOrBuilder() { return gkeBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.AnthosCluster, + com.google.cloud.deploy.v1.AnthosCluster.Builder, + com.google.cloud.deploy.v1.AnthosClusterOrBuilder> + anthosClusterBuilder_; + /** + * + * + *+ * Information specifying an Anthos Cluster. + *+ * + *.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17;
+ * + * @return Whether the anthosCluster field is set. + */ + @java.lang.Override + public boolean hasAnthosCluster() { + return deploymentTargetCase_ == 17; + } + /** + * + * + *+ * Information specifying an Anthos Cluster. + *+ * + *.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17;
+ * + * @return The anthosCluster. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.AnthosCluster getAnthosCluster() { + if (anthosClusterBuilder_ == null) { + if (deploymentTargetCase_ == 17) { + return (com.google.cloud.deploy.v1.AnthosCluster) deploymentTarget_; + } + return com.google.cloud.deploy.v1.AnthosCluster.getDefaultInstance(); + } else { + if (deploymentTargetCase_ == 17) { + return anthosClusterBuilder_.getMessage(); + } + return com.google.cloud.deploy.v1.AnthosCluster.getDefaultInstance(); + } + } + /** + * + * + *+ * Information specifying an Anthos Cluster. + *+ * + *.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17;
+ */ + public Builder setAnthosCluster(com.google.cloud.deploy.v1.AnthosCluster value) { + if (anthosClusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deploymentTarget_ = value; + onChanged(); + } else { + anthosClusterBuilder_.setMessage(value); + } + deploymentTargetCase_ = 17; + return this; + } + /** + * + * + *+ * Information specifying an Anthos Cluster. + *+ * + *.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17;
+ */ + public Builder setAnthosCluster( + com.google.cloud.deploy.v1.AnthosCluster.Builder builderForValue) { + if (anthosClusterBuilder_ == null) { + deploymentTarget_ = builderForValue.build(); + onChanged(); + } else { + anthosClusterBuilder_.setMessage(builderForValue.build()); + } + deploymentTargetCase_ = 17; + return this; + } + /** + * + * + *+ * Information specifying an Anthos Cluster. + *+ * + *.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17;
+ */ + public Builder mergeAnthosCluster(com.google.cloud.deploy.v1.AnthosCluster value) { + if (anthosClusterBuilder_ == null) { + if (deploymentTargetCase_ == 17 + && deploymentTarget_ != com.google.cloud.deploy.v1.AnthosCluster.getDefaultInstance()) { + deploymentTarget_ = + com.google.cloud.deploy.v1.AnthosCluster.newBuilder( + (com.google.cloud.deploy.v1.AnthosCluster) deploymentTarget_) + .mergeFrom(value) + .buildPartial(); + } else { + deploymentTarget_ = value; + } + onChanged(); + } else { + if (deploymentTargetCase_ == 17) { + anthosClusterBuilder_.mergeFrom(value); + } else { + anthosClusterBuilder_.setMessage(value); + } + } + deploymentTargetCase_ = 17; + return this; + } + /** + * + * + *+ * Information specifying an Anthos Cluster. + *+ * + *.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17;
+ */ + public Builder clearAnthosCluster() { + if (anthosClusterBuilder_ == null) { + if (deploymentTargetCase_ == 17) { + deploymentTargetCase_ = 0; + deploymentTarget_ = null; + onChanged(); + } + } else { + if (deploymentTargetCase_ == 17) { + deploymentTargetCase_ = 0; + deploymentTarget_ = null; + } + anthosClusterBuilder_.clear(); + } + return this; + } + /** + * + * + *+ * Information specifying an Anthos Cluster. + *+ * + *.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17;
+ */ + public com.google.cloud.deploy.v1.AnthosCluster.Builder getAnthosClusterBuilder() { + return getAnthosClusterFieldBuilder().getBuilder(); + } + /** + * + * + *+ * Information specifying an Anthos Cluster. + *+ * + *.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17;
+ */ + @java.lang.Override + public com.google.cloud.deploy.v1.AnthosClusterOrBuilder getAnthosClusterOrBuilder() { + if ((deploymentTargetCase_ == 17) && (anthosClusterBuilder_ != null)) { + return anthosClusterBuilder_.getMessageOrBuilder(); + } else { + if (deploymentTargetCase_ == 17) { + return (com.google.cloud.deploy.v1.AnthosCluster) deploymentTarget_; + } + return com.google.cloud.deploy.v1.AnthosCluster.getDefaultInstance(); + } + } + /** + * + * + *+ * Information specifying an Anthos Cluster. + *+ * + *.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17;
+ */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.AnthosCluster, + com.google.cloud.deploy.v1.AnthosCluster.Builder, + com.google.cloud.deploy.v1.AnthosClusterOrBuilder> + getAnthosClusterFieldBuilder() { + if (anthosClusterBuilder_ == null) { + if (!(deploymentTargetCase_ == 17)) { + deploymentTarget_ = com.google.cloud.deploy.v1.AnthosCluster.getDefaultInstance(); + } + anthosClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.AnthosCluster, + com.google.cloud.deploy.v1.AnthosCluster.Builder, + com.google.cloud.deploy.v1.AnthosClusterOrBuilder>( + (com.google.cloud.deploy.v1.AnthosCluster) deploymentTarget_, + getParentForChildren(), + isClean()); + deploymentTarget_ = null; + } + deploymentTargetCase_ = 17; + onChanged(); + ; + return anthosClusterBuilder_; + } + private java.lang.Object etag_ = ""; /** * diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetArtifact.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetArtifact.java index 4f98383..329c747 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetArtifact.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetArtifact.java @@ -103,6 +103,8 @@ private TargetArtifact( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetName.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetName.java index b8c6c87..dff121e 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetName.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetNotificationEvent.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetNotificationEvent.java new file mode 100644 index 0000000..cc5e81d --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetNotificationEvent.java @@ -0,0 +1,969 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/target_notification_payload.proto + +package com.google.cloud.deploy.v1; + +/** + * + * + *+ * Payload proto for "clouddeploy.googleapis.com/target_notification" + * Platform Log event that describes the failure to send target status change + * Pub/Sub notification. + *+ * + * Protobuf type {@code google.cloud.deploy.v1.TargetNotificationEvent} + */ +public final class TargetNotificationEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.TargetNotificationEvent) + TargetNotificationEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use TargetNotificationEvent.newBuilder() to construct. + private TargetNotificationEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private TargetNotificationEvent() { + message_ = ""; + target_ = ""; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TargetNotificationEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TargetNotificationEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + target_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.TargetNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_TargetNotificationEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.TargetNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_TargetNotificationEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.TargetNotificationEvent.class, + com.google.cloud.deploy.v1.TargetNotificationEvent.Builder.class); + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object message_; + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_FIELD_NUMBER = 2; + private volatile java.lang.Object target_; + /** + * + * + *+ * The name of the `Target`. + *+ * + *string target = 2;
+ * + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } + } + /** + * + * + *+ * The name of the `Target`. + *+ * + *string target = 2;
+ * + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 3; + private int type_; + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.Type getType() { + @SuppressWarnings("deprecation") + com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.valueOf(type_); + return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, target_); + } + if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, target_); + } + if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.deploy.v1.TargetNotificationEvent)) { + return super.equals(obj); + } + com.google.cloud.deploy.v1.TargetNotificationEvent other = + (com.google.cloud.deploy.v1.TargetNotificationEvent) obj; + + if (!getMessage().equals(other.getMessage())) return false; + if (!getTarget().equals(other.getTarget())) return false; + if (type_ != other.type_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.deploy.v1.TargetNotificationEvent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.TargetNotificationEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.TargetNotificationEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.TargetNotificationEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.TargetNotificationEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.TargetNotificationEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.TargetNotificationEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.TargetNotificationEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.TargetNotificationEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.TargetNotificationEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.TargetNotificationEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.TargetNotificationEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.deploy.v1.TargetNotificationEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *+ * Payload proto for "clouddeploy.googleapis.com/target_notification" + * Platform Log event that describes the failure to send target status change + * Pub/Sub notification. + *+ * + * Protobuf type {@code google.cloud.deploy.v1.TargetNotificationEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.TargetNotificationEvent) + com.google.cloud.deploy.v1.TargetNotificationEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.TargetNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_TargetNotificationEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.TargetNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_TargetNotificationEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.TargetNotificationEvent.class, + com.google.cloud.deploy.v1.TargetNotificationEvent.Builder.class); + } + + // Construct using com.google.cloud.deploy.v1.TargetNotificationEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + message_ = ""; + + target_ = ""; + + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.TargetNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_TargetNotificationEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.TargetNotificationEvent getDefaultInstanceForType() { + return com.google.cloud.deploy.v1.TargetNotificationEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.deploy.v1.TargetNotificationEvent build() { + com.google.cloud.deploy.v1.TargetNotificationEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.TargetNotificationEvent buildPartial() { + com.google.cloud.deploy.v1.TargetNotificationEvent result = + new com.google.cloud.deploy.v1.TargetNotificationEvent(this); + result.message_ = message_; + result.target_ = target_; + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.deploy.v1.TargetNotificationEvent) { + return mergeFrom((com.google.cloud.deploy.v1.TargetNotificationEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.deploy.v1.TargetNotificationEvent other) { + if (other == com.google.cloud.deploy.v1.TargetNotificationEvent.getDefaultInstance()) + return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.deploy.v1.TargetNotificationEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.deploy.v1.TargetNotificationEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object message_ = ""; + /** + * + * + * + * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return This builder for chaining. + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + private java.lang.Object target_ = ""; + /** + * + * + *+ * The name of the `Target`. + *+ * + *string target = 2;
+ * + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * The name of the `Target`. + *+ * + *string target = 2;
+ * + * @return The bytes for target. + */ + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * The name of the `Target`. + *+ * + *string target = 2;
+ * + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + target_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * The name of the `Target`. + *+ * + *string target = 2;
+ * + * @return This builder for chaining. + */ + public Builder clearTarget() { + + target_ = getDefaultInstance().getTarget(); + onChanged(); + return this; + } + /** + * + * + *+ * The name of the `Target`. + *+ * + *string target = 2;
+ * + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + target_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.Type getType() { + @SuppressWarnings("deprecation") + com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.valueOf(type_); + return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; + } + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.deploy.v1.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.TargetNotificationEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.TargetNotificationEvent) + private static final com.google.cloud.deploy.v1.TargetNotificationEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.TargetNotificationEvent(); + } + + public static com.google.cloud.deploy.v1.TargetNotificationEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public TargetNotificationEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TargetNotificationEvent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.TargetNotificationEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetNotificationEventOrBuilder.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetNotificationEventOrBuilder.java new file mode 100644 index 0000000..97ac0a4 --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetNotificationEventOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/target_notification_payload.proto + +package com.google.cloud.deploy.v1; + +public interface TargetNotificationEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.TargetNotificationEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The message. + */ + java.lang.String getMessage(); + /** + * + * + *+ * Debug message for when a notification fails to send. + *+ * + *string message = 1;
+ * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *+ * The name of the `Target`. + *+ * + *string target = 2;
+ * + * @return The target. + */ + java.lang.String getTarget(); + /** + * + * + *+ * The name of the `Target`. + *+ * + *string target = 2;
+ * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *+ * Type of this notification, e.g. for a Pub/Sub failure. + *+ * + *.google.cloud.deploy.v1.Type type = 3;
+ * + * @return The type. + */ + com.google.cloud.deploy.v1.Type getType(); +} diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetNotificationPayloadProto.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetNotificationPayloadProto.java new file mode 100644 index 0000000..bad2cc6 --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetNotificationPayloadProto.java @@ -0,0 +1,71 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/target_notification_payload.proto + +package com.google.cloud.deploy.v1; + +public final class TargetNotificationPayloadProto { + private TargetNotificationPayloadProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_TargetNotificationEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_TargetNotificationEvent_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/deploy/v1/target_notifica" + + "tion_payload.proto\022\026google.cloud.deploy." + + "v1\032&google/cloud/deploy/v1/log_enums.pro" + + "to\"f\n\027TargetNotificationEvent\022\017\n\007message" + + "\030\001 \001(\t\022\016\n\006target\030\002 \001(\t\022*\n\004type\030\003 \001(\0162\034.g" + + "oogle.cloud.deploy.v1.TypeB|\n\032com.google" + + ".cloud.deploy.v1B\036TargetNotificationPayl" + + "oadProtoP\001Z- * Optional. Name of the `Target`. Format is projects/{project}/locations/{location}/ - * deliveryPipelines/{deliveryPipeline}/targets/[a-z][a-z0-9\-]{0,62}. + * Optional. Name of the `Target`. Format is + * projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}. * string name = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -40,8 +40,8 @@ public interface TargetOrBuilder * * *- * Optional. Name of the `Target`. Format is projects/{project}/locations/{location}/ - * deliveryPipelines/{deliveryPipeline}/targets/[a-z][a-z0-9\-]{0,62}. + * Optional. Name of the `Target`. Format is + * projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}. ** *string name = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -183,7 +183,12 @@ public interface TargetOrBuilder *map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; *
*/ - java.lang.String getAnnotationsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * @@ -205,10 +210,14 @@ public interface TargetOrBuilder ** Optional. Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -220,10 +229,14 @@ public interface TargetOrBuilder ** Optional. Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -238,10 +251,14 @@ public interface TargetOrBuilder ** Optional. Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -253,25 +270,38 @@ public interface TargetOrBuilder ** Optional. Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
*/ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * ** Optional. Labels are attributes that can be set and used by both the * user and by Google Cloud Deploy. Labels must meet the following - * constraints: Each resource is limited to 64 labels. Keys must conform to - * the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - * regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - * constrained to be <= 128 bytes in size. + * constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. ** *map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -402,6 +432,41 @@ public interface TargetOrBuilder */ com.google.cloud.deploy.v1.GkeClusterOrBuilder getGkeOrBuilder(); + /** + * + * + *+ * Information specifying an Anthos Cluster. + *+ * + *.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17;
+ * + * @return Whether the anthosCluster field is set. + */ + boolean hasAnthosCluster(); + /** + * + * + *+ * Information specifying an Anthos Cluster. + *+ * + *.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17;
+ * + * @return The anthosCluster. + */ + com.google.cloud.deploy.v1.AnthosCluster getAnthosCluster(); + /** + * + * + *+ * Information specifying an Anthos Cluster. + *+ * + *.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17;
+ */ + com.google.cloud.deploy.v1.AnthosClusterOrBuilder getAnthosClusterOrBuilder(); + /** * * diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetsPresentCondition.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetsPresentCondition.java index 2c51426..d0807b5 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetsPresentCondition.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetsPresentCondition.java @@ -113,6 +113,8 @@ private TargetsPresentCondition( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Type.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Type.java new file mode 100644 index 0000000..f7e5611 --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Type.java @@ -0,0 +1,176 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/log_enums.proto + +package com.google.cloud.deploy.v1; + +/** + * + * + *+ * Type indicates the type of the log entry and can be used as a filter. + *+ * + * Protobuf enum {@code google.cloud.deploy.v1.Type} + */ +public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *+ * Type is unspecified. + *+ * + *TYPE_UNSPECIFIED = 0;
+ */ + TYPE_UNSPECIFIED(0), + /** + * + * + *+ * A Pub/Sub notification failed to be sent. + *+ * + *TYPE_PUBSUB_NOTIFICATION_FAILURE = 1;
+ */ + TYPE_PUBSUB_NOTIFICATION_FAILURE(1), + /** + * + * + *+ * Release render status changed notification. + *+ * + *TYPE_RENDER_STATUES_CHANGE = 2;
+ */ + TYPE_RENDER_STATUES_CHANGE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *+ * Type is unspecified. + *+ * + *TYPE_UNSPECIFIED = 0;
+ */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *+ * A Pub/Sub notification failed to be sent. + *+ * + *TYPE_PUBSUB_NOTIFICATION_FAILURE = 1;
+ */ + public static final int TYPE_PUBSUB_NOTIFICATION_FAILURE_VALUE = 1; + /** + * + * + *+ * Release render status changed notification. + *+ * + *TYPE_RENDER_STATUES_CHANGE = 2;
+ */ + public static final int TYPE_RENDER_STATUES_CHANGE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return TYPE_PUBSUB_NOTIFICATION_FAILURE; + case 2: + return TYPE_RENDER_STATUES_CHANGE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMapinternalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap () { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.deploy.v1.LogEnumsProto.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.deploy.v1.Type) +} diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateDeliveryPipelineRequest.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateDeliveryPipelineRequest.java index ae9a13b..6bf7eb0 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateDeliveryPipelineRequest.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateDeliveryPipelineRequest.java @@ -129,6 +129,8 @@ private UpdateDeliveryPipelineRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateTargetRequest.java b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateTargetRequest.java index 104ab9e..266828b 100644 --- a/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateTargetRequest.java +++ b/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateTargetRequest.java @@ -128,6 +128,8 @@ private UpdateTargetRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto b/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto index ebdfb88..cf3ebcb 100644 --- a/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto +++ b/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -45,6 +45,10 @@ option (google.api.resource_definition) = { type: "cloudbuild.googleapis.com/WorkerPool" pattern: "projects/{project}/locations/{location}/workerPools/{worker_pool}" }; +option (google.api.resource_definition) = { + type: "gkehub.googleapis.com/Membership" + pattern: "projects/{project}/locations/{location}/memberships/{membership}" +}; // CloudDeploy service creates and manages Continuous Delivery operations // on Google Cloud Platform via Skaffold (https://skaffold.dev). @@ -264,10 +268,16 @@ message DeliveryPipeline { // Labels are attributes that can be set and used by both the // user and by Google Cloud Deploy. Labels must meet the following - // constraints: Each resource is limited to 64 labels. Keys must conform to - // the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - // regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - // constrained to be <= 128 bytes in size. + // constraints: + // + // * Keys and values can contain only lowercase letters, numeric characters, + // underscores, and dashes. + // * All characters must use UTF-8 encoding, and international characters are + // allowed. + // * Keys must start with a lowercase letter or international character. + // * Each resource is limited to a maximum of 64 labels. + // + // Both keys and values are additionally constrained to be <= 128 bytes. map labels = 5; // Output only. Time at which the pipeline was created. @@ -304,9 +314,9 @@ message Stage { // The target_id to which this stage points. This field refers exclusively to // the last segment of a target name. For example, this field would just be // `my-target` (rather than - // `projects/project/deliveryPipelines/pipeline/targets/my-target`). The - // parent `DeliveryPipeline` of the `Target` is inferred to be the parent - // `DeliveryPipeline` of the `Release` in which this `Stage` lives. + // `projects/project/locations/location/targets/my-target`). The location of + // the `Target` is inferred to be the same as the location of the + // `DeliveryPipeline` that contains this `Stage`. string target_id = 1; // Skaffold profiles to use when rendering the manifest for this stage's @@ -376,7 +386,7 @@ message ListDeliveryPipelinesRequest { // the call that provided the page token. string page_token = 3; - // Filter builds to be returned. See https://google.aip.dev/160 for more + // Filter pipelines to be returned. See https://google.aip.dev/160 for more // details. string filter = 4; @@ -537,8 +547,8 @@ message Target { pattern: "projects/{project}/locations/{location}/targets/{target}" }; - // Optional. Name of the `Target`. Format is projects/{project}/locations/{location}/ - // deliveryPipelines/{deliveryPipeline}/targets/[a-z][a-z0-9\-]{0,62}. + // Optional. Name of the `Target`. Format is + // projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}. string name = 1 [(google.api.field_behavior) = OPTIONAL]; // Output only. Resource id of the `Target`. @@ -558,10 +568,16 @@ message Target { // Optional. Labels are attributes that can be set and used by both the // user and by Google Cloud Deploy. Labels must meet the following - // constraints: Each resource is limited to 64 labels. Keys must conform to - // the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - // regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - // constrained to be <= 128 bytes in size. + // constraints: + // + // * Keys and values can contain only lowercase letters, numeric characters, + // underscores, and dashes. + // * All characters must use UTF-8 encoding, and international characters are + // allowed. + // * Keys must start with a lowercase letter or international character. + // * Each resource is limited to a maximum of 64 labels. + // + // Both keys and values are additionally constrained to be <= 128 bytes. map labels = 6 [(google.api.field_behavior) = OPTIONAL]; // Optional. Whether or not the `Target` requires approval. @@ -578,6 +594,9 @@ message Target { oneof deployment_target { // Information specifying a GKE Cluster. GkeCluster gke = 15; + + // Information specifying an Anthos Cluster. + AnthosCluster anthos_cluster = 17; } // Optional. This checksum is computed by the server based on the value of other @@ -620,6 +639,28 @@ message ExecutionConfig { // Optional. Use private Cloud Build pool. PrivatePool private_pool = 3 [(google.api.field_behavior) = OPTIONAL]; } + + // Optional. The resource name of the `WorkerPool`, with the format + // `projects/{project}/locations/{location}/workerPools/{worker_pool}`. + // If this optional field is unspecified, the default Cloud Build pool will be + // used. + string worker_pool = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "cloudbuild.googleapis.com/WorkerPool" + } + ]; + + // Optional. Google service account to use for execution. If unspecified, + // the project execution service account + // ( -compute@developer.gserviceaccount.com) is used. + string service_account = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Cloud Storage location in which to store execution outputs. This can + // either be a bucket ("gs://my-bucket") or a path within a bucket + // ("gs://my-bucket/my-dir"). + // If unspecified, a default bucket located in the same region will be used. + string artifact_storage = 6 [(google.api.field_behavior) = OPTIONAL]; } // Execution using the default Cloud Build pool. @@ -666,6 +707,26 @@ message GkeCluster { string cluster = 1 [(google.api.resource_reference) = { type: "container.googleapis.com/Cluster" }]; + + // Optional. If true, `cluster` is accessed using the private IP address of the control + // plane endpoint. Otherwise, the default IP address of the control plane + // endpoint is used. The default IP address is the private IP address for + // clusters with private control-plane endpoints and the public IP address + // otherwise. + // + // Only specify this option when `cluster` is a [private GKE + // cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). + bool internal_ip = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Information specifying an Anthos Cluster. +message AnthosCluster { + // Membership of the GKE Hub-registered cluster to which to apply the Skaffold + // configuration. Format is + // `projects/{project}/locations/{location}/memberships/{membership_name}`. + string membership = 1 [(google.api.resource_reference) = { + type: "gkehub.googleapis.com/Membership" + }]; } // The request object for `ListTargets`. @@ -691,7 +752,7 @@ message ListTargetsRequest { // the call that provided the page token. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + // Optional. Filter targets to be returned. See https://google.aip.dev/160 for more // details. string filter = 4 [(google.api.field_behavior) = OPTIONAL]; @@ -848,6 +909,21 @@ message Release { pattern: "projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}" }; + // Valid states of the render operation. + enum RenderState { + // The render state is unspecified. + RENDER_STATE_UNSPECIFIED = 0; + + // All rendering operations have completed successfully. + SUCCEEDED = 1; + + // All rendering operations have completed, and one or more have failed. + FAILED = 2; + + // Rendering has started and is not complete. + IN_PROGRESS = 3; + } + // Details of rendering for a single target. message TargetRender { // Valid states of the render operation. @@ -865,6 +941,21 @@ message Release { IN_PROGRESS = 3; } + // Well-known rendering failures. + enum FailureCause { + // No reason for failure is specified. + FAILURE_CAUSE_UNSPECIFIED = 0; + + // Cloud Build is not available, either because it is not enabled or + // because Cloud Deploy has insufficient permissions. See [required + // permission](/deploy/docs/cloud-deploy-service-account#required_permissions). + CLOUD_BUILD_UNAVAILABLE = 1; + + // The render operation did not complete successfully; check Cloud Build + // logs. + EXECUTION_FAILED = 2; + } + // Output only. The resource name of the Cloud Build `Build` object that is used to // render the manifest for this target. Format is // `projects/{project}/locations/{location}/builds/{build}`. @@ -877,21 +968,10 @@ message Release { // Output only. Current state of the render operation for this Target. TargetRenderState rendering_state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Valid states of the render operation. - enum RenderState { - // The render state is unspecified. - RENDER_STATE_UNSPECIFIED = 0; - - // All rendering operations have completed successfully. - SUCCEEDED = 1; - // All rendering operations have completed, and one or more have failed. - FAILED = 2; - - // Rendering has started and is not complete. - IN_PROGRESS = 3; + // Output only. Reason this render failed. This will always be unspecified while the + // render in progress. + FailureCause failure_cause = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Optional. Name of the `Release`. Format is projects/{project}/ @@ -913,10 +993,16 @@ message Release { // Labels are attributes that can be set and used by both the // user and by Google Cloud Deploy. Labels must meet the following - // constraints: Each resource is limited to 64 labels. Keys must conform to - // the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - // regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - // constrained to be <= 128 bytes in size. + // constraints: + // + // * Keys and values can contain only lowercase letters, numeric characters, + // underscores, and dashes. + // * All characters must use UTF-8 encoding, and international characters are + // allowed. + // * Keys must start with a lowercase letter or international character. + // * Each resource is limited to a maximum of 64 labels. + // + // Both keys and values are additionally constrained to be <= 128 bytes. map labels = 5; // Output only. Time at which the `Release` was created. @@ -940,7 +1026,7 @@ message Release { // Output only. Snapshot of the parent pipeline taken at release creation time. DeliveryPipeline delivery_pipeline_snapshot = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Snapshot of the parent pipeline's targets taken at release creation time. + // Output only. Snapshot of the targets taken at release creation time. repeated Target target_snapshots = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Current state of the render operation. @@ -1015,7 +1101,7 @@ message ListReleasesRequest { // the call that provided the page token. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + // Optional. Filter releases to be returned. See https://google.aip.dev/160 for more // details. string filter = 4 [(google.api.field_behavior) = OPTIONAL]; @@ -1141,6 +1227,27 @@ message Rollout { PENDING_RELEASE = 7; } + // Well-known deployment failures. + enum FailureCause { + // No reason for failure is specified. + FAILURE_CAUSE_UNSPECIFIED = 0; + + // Cloud Build is not available, either because it is not enabled or because + // Cloud Deploy has insufficient permissions. See [required + // permission](/deploy/docs/cloud-deploy-service-account#required_permissions). + CLOUD_BUILD_UNAVAILABLE = 1; + + // The deploy operation did not complete successfully; check Cloud Build + // logs. + EXECUTION_FAILED = 2; + + // Deployment did not complete within the alloted time. + DEADLINE_EXCEEDED = 3; + + // Release is in a failed state. + RELEASE_FAILED = 4; + } + // Optional. Name of the `Rollout`. Format is projects/{project}/ // locations/{location}/deliveryPipelines/{deliveryPipeline}/ // releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}. @@ -1161,10 +1268,16 @@ message Rollout { // Labels are attributes that can be set and used by both the // user and by Google Cloud Deploy. Labels must meet the following - // constraints: Each resource is limited to 64 labels. Keys must conform to - // the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the - // regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally - // constrained to be <= 128 bytes in size. + // constraints: + // + // * Keys and values can contain only lowercase letters, numeric characters, + // underscores, and dashes. + // * All characters must use UTF-8 encoding, and international characters are + // allowed. + // * Keys must start with a lowercase letter or international character. + // * Each resource is limited to a maximum of 64 labels. + // + // Both keys and values are additionally constrained to be <= 128 bytes. map labels = 5; // Output only. Time at which the `Rollout` was created. @@ -1208,6 +1321,10 @@ message Rollout { // fields, and may be sent on update and delete requests to ensure the // client has an up-to-date value before proceeding. string etag = 16; + + // Output only. The reason this deploy failed. This will always be unspecified while the + // deploy in progress. + FailureCause deploy_failure_cause = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; } // ListRolloutsRequest is the request object used by `ListRollouts`. @@ -1232,7 +1349,7 @@ message ListRolloutsRequest { // the call that provided the page token. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Filter builds to be returned. See https://google.aip.dev/160 for more + // Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more // details. string filter = 4 [(google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/deliverypipeline_notification_payload.proto b/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/deliverypipeline_notification_payload.proto new file mode 100644 index 0000000..5fff2d0 --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/deliverypipeline_notification_payload.proto @@ -0,0 +1,38 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.deploy.v1; + +import "google/cloud/deploy/v1/log_enums.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/deploy/v1;deploy"; +option java_multiple_files = true; +option java_outer_classname = "DeliveryPipelineNotificationPayloadProto"; +option java_package = "com.google.cloud.deploy.v1"; + +// Payload proto for "clouddeploy.googleapis.com/deliverypipeline_notification" +// Platform Log event that describes the failure to send delivery pipeline +// status change Pub/Sub notification. +message DeliveryPipelineNotificationEvent { + // Debug message for when a notification fails to send. + string message = 1; + + // The name of the `Delivery Pipeline`. + string delivery_pipeline = 2; + + // Type of this notification, e.g. for a Pub/Sub failure. + Type type = 3; +} diff --git a/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/log_enums.proto b/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/log_enums.proto new file mode 100644 index 0000000..cd6a32e --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/log_enums.proto @@ -0,0 +1,34 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.deploy.v1; + +option go_package = "google.golang.org/genproto/googleapis/cloud/deploy/v1;deploy"; +option java_multiple_files = true; +option java_outer_classname = "LogEnumsProto"; +option java_package = "com.google.cloud.deploy.v1"; + +// Type indicates the type of the log entry and can be used as a filter. +enum Type { + // Type is unspecified. + TYPE_UNSPECIFIED = 0; + + // A Pub/Sub notification failed to be sent. + TYPE_PUBSUB_NOTIFICATION_FAILURE = 1; + + // Release render status changed notification. + TYPE_RENDER_STATUES_CHANGE = 2; +} diff --git a/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/release_notification_payload.proto b/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/release_notification_payload.proto new file mode 100644 index 0000000..0383b8e --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/release_notification_payload.proto @@ -0,0 +1,38 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.deploy.v1; + +import "google/cloud/deploy/v1/log_enums.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/deploy/v1;deploy"; +option java_multiple_files = true; +option java_outer_classname = "ReleaseNotificationPayloadProto"; +option java_package = "com.google.cloud.deploy.v1"; + +// Payload proto for "clouddeploy.googleapis.com/release_notification" +// Platform Log event that describes the failure to send release status change +// Pub/Sub notification. +message ReleaseNotificationEvent { + // Debug message for when a notification fails to send. + string message = 1; + + // The name of the `Release`. + string release = 2; + + // Type of this notification, e.g. for a Pub/Sub failure. + Type type = 3; +} diff --git a/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/release_render_payload.proto b/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/release_render_payload.proto new file mode 100644 index 0000000..414e72d --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/release_render_payload.proto @@ -0,0 +1,33 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.deploy.v1; + +option go_package = "google.golang.org/genproto/googleapis/cloud/deploy/v1;deploy"; +option java_multiple_files = true; +option java_outer_classname = "ReleaseRenderPayloadProto"; +option java_package = "com.google.cloud.deploy.v1"; + +// Payload proto for "clouddeploy.googleapis.com/release_render" +// Platform Log event that describes the render status change. +message ReleaseRenderEvent { + // Debug message for when a render transition occurs. Provides further + // details as rendering progresses through render states. + string message = 1; + + // The name of the `Release`. + string release = 2; +} diff --git a/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/rollout_notification_payload.proto b/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/rollout_notification_payload.proto new file mode 100644 index 0000000..10f6864 --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/rollout_notification_payload.proto @@ -0,0 +1,47 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.deploy.v1; + +import "google/cloud/deploy/v1/log_enums.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/deploy/v1;deploy"; +option java_multiple_files = true; +option java_outer_classname = "RolloutNotificationPayloadProto"; +option java_package = "com.google.cloud.deploy.v1"; + +// Payload proto for "clouddeploy.googleapis.com/rollout_notification" +// Platform Log event that describes the failure to send rollout status change +// Pub/Sub notification. +message RolloutNotificationEvent { + // Debug message for when a notification fails to send. + string message = 1; + + // Unique identifier of the `DeliveryPipeline`. + string pipeline_uid = 2; + + // Unique identifier of the `Release`. + string release_uid = 3; + + // The name of the `Rollout`. + string rollout = 4; + + // Type of this notification, e.g. for a Pub/Sub failure. + Type type = 5; + + // ID of the `Target` that the rollout is deployed to. + string target_id = 6; +} diff --git a/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/target_notification_payload.proto b/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/target_notification_payload.proto new file mode 100644 index 0000000..d121cdb --- /dev/null +++ b/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/target_notification_payload.proto @@ -0,0 +1,38 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.deploy.v1; + +import "google/cloud/deploy/v1/log_enums.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/deploy/v1;deploy"; +option java_multiple_files = true; +option java_outer_classname = "TargetNotificationPayloadProto"; +option java_package = "com.google.cloud.deploy.v1"; + +// Payload proto for "clouddeploy.googleapis.com/target_notification" +// Platform Log event that describes the failure to send target status change +// Pub/Sub notification. +message TargetNotificationEvent { + // Debug message for when a notification fails to send. + string message = 1; + + // The name of the `Target`. + string target = 2; + + // Type of this notification, e.g. for a Pub/Sub failure. + Type type = 3; +} diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 589c5f5..72342da 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ diff --git a/samples/pom.xml b/samples/pom.xml index 4020742..67d8337 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -46,7 +46,7 @@ com.google.cloud google-cloud-deploy -1.0.3 +1.0.4 org.sonatype.plugins nexus-staging-maven-plugin -1.6.12 +1.6.13 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 5af4bf5..a6a96a4 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ true diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index c23ae83..de51821 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-deploy -1.0.3 +1.0.4 com.google.cloud google-cloud-deploy -1.0.3 +1.0.4 diff --git a/versions.txt b/versions.txt index adac426..cae9cb0 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-deploy:1.0.4:1.0.4 -grpc-google-cloud-deploy-v1:1.0.4:1.0.4 -proto-google-cloud-deploy-v1:1.0.4:1.0.4 +google-cloud-deploy:1.1.0:1.1.0 +grpc-google-cloud-deploy-v1:1.1.0:1.1.0 +proto-google-cloud-deploy-v1:1.1.0:1.1.0