diff --git a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationClient.java b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationClient.java index c51d8a0ebfc5..144570ddaaba 100644 --- a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationClient.java +++ b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationClient.java @@ -2117,6 +2117,96 @@ public final OperationFuture deleteDatacenterConnector return stub.deleteDatacenterConnectorCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Upgrades the appliance relate to this DatacenterConnector to the in-place updateable version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
+   *   UpgradeApplianceRequest request =
+   *       UpgradeApplianceRequest.newBuilder()
+   *           .setDatacenterConnector(
+   *               DatacenterConnectorName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   UpgradeApplianceResponse response = vmMigrationClient.upgradeApplianceAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture upgradeApplianceAsync( + UpgradeApplianceRequest request) { + return upgradeApplianceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Upgrades the appliance relate to this DatacenterConnector to the in-place updateable version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
+   *   UpgradeApplianceRequest request =
+   *       UpgradeApplianceRequest.newBuilder()
+   *           .setDatacenterConnector(
+   *               DatacenterConnectorName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmMigrationClient.upgradeApplianceOperationCallable().futureCall(request);
+   *   // Do something.
+   *   UpgradeApplianceResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpgradeApplianceRequest, UpgradeApplianceResponse, OperationMetadata> + upgradeApplianceOperationCallable() { + return stub.upgradeApplianceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Upgrades the appliance relate to this DatacenterConnector to the in-place updateable version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
+   *   UpgradeApplianceRequest request =
+   *       UpgradeApplianceRequest.newBuilder()
+   *           .setDatacenterConnector(
+   *               DatacenterConnectorName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmMigrationClient.upgradeApplianceCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable upgradeApplianceCallable() { + return stub.upgradeApplianceCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new MigratingVm in a given Source. @@ -2342,6 +2432,7 @@ public final ListMigratingVmsPagedResponse listMigratingVms(String parent) { * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") * .setOrderBy("orderBy-1207110587") + * .setView(MigratingVmView.forNumber(0)) * .build(); * for (MigratingVm element : vmMigrationClient.listMigratingVms(request).iterateAll()) { * // doThingsWith(element); @@ -2373,6 +2464,7 @@ public final ListMigratingVmsPagedResponse listMigratingVms(ListMigratingVmsRequ * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") * .setOrderBy("orderBy-1207110587") + * .setView(MigratingVmView.forNumber(0)) * .build(); * ApiFuture future = * vmMigrationClient.listMigratingVmsPagedCallable().futureCall(request); @@ -2405,6 +2497,7 @@ public final ListMigratingVmsPagedResponse listMigratingVms(ListMigratingVmsRequ * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") * .setOrderBy("orderBy-1207110587") + * .setView(MigratingVmView.forNumber(0)) * .build(); * while (true) { * ListMigratingVmsResponse response = @@ -2491,6 +2584,7 @@ public final MigratingVm getMigratingVm(String name) { * .setName( * MigratingVmName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]") * .toString()) + * .setView(MigratingVmView.forNumber(0)) * .build(); * MigratingVm response = vmMigrationClient.getMigratingVm(request); * } @@ -2518,6 +2612,7 @@ public final MigratingVm getMigratingVm(GetMigratingVmRequest request) { * .setName( * MigratingVmName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]") * .toString()) + * .setView(MigratingVmView.forNumber(0)) * .build(); * ApiFuture future = * vmMigrationClient.getMigratingVmCallable().futureCall(request); diff --git a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationSettings.java b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationSettings.java index 8aa02284242d..5fd5edea4ca3 100644 --- a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationSettings.java +++ b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationSettings.java @@ -211,6 +211,17 @@ public UnaryCallSettings fetchInv .deleteDatacenterConnectorOperationSettings(); } + /** Returns the object with the settings used for calls to upgradeAppliance. */ + public UnaryCallSettings upgradeApplianceSettings() { + return ((VmMigrationStubSettings) getStubSettings()).upgradeApplianceSettings(); + } + + /** Returns the object with the settings used for calls to upgradeAppliance. */ + public OperationCallSettings + upgradeApplianceOperationSettings() { + return ((VmMigrationStubSettings) getStubSettings()).upgradeApplianceOperationSettings(); + } + /** Returns the object with the settings used for calls to createMigratingVm. */ public UnaryCallSettings createMigratingVmSettings() { return ((VmMigrationStubSettings) getStubSettings()).createMigratingVmSettings(); @@ -726,6 +737,19 @@ public UnaryCallSettings.Builder deleteSourceSet return getStubSettingsBuilder().deleteDatacenterConnectorOperationSettings(); } + /** Returns the builder for the settings used for calls to upgradeAppliance. */ + public UnaryCallSettings.Builder + upgradeApplianceSettings() { + return getStubSettingsBuilder().upgradeApplianceSettings(); + } + + /** Returns the builder for the settings used for calls to upgradeAppliance. */ + public OperationCallSettings.Builder< + UpgradeApplianceRequest, UpgradeApplianceResponse, OperationMetadata> + upgradeApplianceOperationSettings() { + return getStubSettingsBuilder().upgradeApplianceOperationSettings(); + } + /** Returns the builder for the settings used for calls to createMigratingVm. */ public UnaryCallSettings.Builder createMigratingVmSettings() { diff --git a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/gapic_metadata.json b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/gapic_metadata.json index 09a1dc49b08f..18e28fcb1b40 100644 --- a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/gapic_metadata.json +++ b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/gapic_metadata.json @@ -138,6 +138,9 @@ }, "UpdateTargetProject": { "methods": ["updateTargetProjectAsync", "updateTargetProjectAsync", "updateTargetProjectOperationCallable", "updateTargetProjectCallable"] + }, + "UpgradeAppliance": { + "methods": ["upgradeApplianceAsync", "upgradeApplianceOperationCallable", "upgradeApplianceCallable"] } } } diff --git a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/GrpcVmMigrationStub.java b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/GrpcVmMigrationStub.java index f4613a03d840..e07e54b17c8c 100644 --- a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/GrpcVmMigrationStub.java +++ b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/GrpcVmMigrationStub.java @@ -100,6 +100,8 @@ import com.google.cloud.vmmigration.v1.UpdateMigratingVmRequest; import com.google.cloud.vmmigration.v1.UpdateSourceRequest; import com.google.cloud.vmmigration.v1.UpdateTargetProjectRequest; +import com.google.cloud.vmmigration.v1.UpgradeApplianceRequest; +import com.google.cloud.vmmigration.v1.UpgradeApplianceResponse; import com.google.cloud.vmmigration.v1.UtilizationReport; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; @@ -264,6 +266,16 @@ public class GrpcVmMigrationStub extends VmMigrationStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + upgradeApplianceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/UpgradeAppliance") + .setRequestMarshaller( + ProtoUtils.marshaller(UpgradeApplianceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor createMigratingVmMethodDescriptor = MethodDescriptor.newBuilder() @@ -592,6 +604,10 @@ public class GrpcVmMigrationStub extends VmMigrationStub { deleteDatacenterConnectorCallable; private final OperationCallable deleteDatacenterConnectorOperationCallable; + private final UnaryCallable upgradeApplianceCallable; + private final OperationCallable< + UpgradeApplianceRequest, UpgradeApplianceResponse, OperationMetadata> + upgradeApplianceOperationCallable; private final UnaryCallable createMigratingVmCallable; private final OperationCallable createMigratingVmOperationCallable; @@ -870,6 +886,17 @@ protected GrpcVmMigrationStub( return params.build(); }) .build(); + GrpcCallSettings upgradeApplianceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(upgradeApplianceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "datacenter_connector", String.valueOf(request.getDatacenterConnector())); + return params.build(); + }) + .build(); GrpcCallSettings createMigratingVmTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createMigratingVmMethodDescriptor) @@ -1279,6 +1306,15 @@ protected GrpcVmMigrationStub( settings.deleteDatacenterConnectorOperationSettings(), clientContext, operationsStub); + this.upgradeApplianceCallable = + callableFactory.createUnaryCallable( + upgradeApplianceTransportSettings, settings.upgradeApplianceSettings(), clientContext); + this.upgradeApplianceOperationCallable = + callableFactory.createOperationCallable( + upgradeApplianceTransportSettings, + settings.upgradeApplianceOperationSettings(), + clientContext, + operationsStub); this.createMigratingVmCallable = callableFactory.createUnaryCallable( createMigratingVmTransportSettings, @@ -1663,6 +1699,17 @@ public UnaryCallable fetchInvento return deleteDatacenterConnectorOperationCallable; } + @Override + public UnaryCallable upgradeApplianceCallable() { + return upgradeApplianceCallable; + } + + @Override + public OperationCallable + upgradeApplianceOperationCallable() { + return upgradeApplianceOperationCallable; + } + @Override public UnaryCallable createMigratingVmCallable() { return createMigratingVmCallable; diff --git a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/HttpJsonVmMigrationStub.java b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/HttpJsonVmMigrationStub.java index 54a968da0ff7..68c48255cbbd 100644 --- a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/HttpJsonVmMigrationStub.java +++ b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/HttpJsonVmMigrationStub.java @@ -108,6 +108,8 @@ import com.google.cloud.vmmigration.v1.UpdateMigratingVmRequest; import com.google.cloud.vmmigration.v1.UpdateSourceRequest; import com.google.cloud.vmmigration.v1.UpdateTargetProjectRequest; +import com.google.cloud.vmmigration.v1.UpgradeApplianceRequest; +import com.google.cloud.vmmigration.v1.UpgradeApplianceResponse; import com.google.cloud.vmmigration.v1.UtilizationReport; import com.google.longrunning.Operation; import com.google.protobuf.Empty; @@ -148,6 +150,7 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub { .add(AddGroupMigrationResponse.getDescriptor()) .add(Group.getDescriptor()) .add(StartMigrationResponse.getDescriptor()) + .add(UpgradeApplianceResponse.getDescriptor()) .add(PauseMigrationResponse.getDescriptor()) .build(); @@ -681,6 +684,47 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + upgradeApplianceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/UpgradeAppliance") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{datacenterConnector=projects/*/locations/*/sources/*/datacenterConnectors/*}:upgradeAppliance", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "datacenterConnector", request.getDatacenterConnector()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", request.toBuilder().clearDatacenterConnector().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpgradeApplianceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor createMigratingVmMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -749,6 +793,7 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub { serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "view", request.getView()); return fields; }) .setRequestBodyExtractor(request -> null) @@ -782,6 +827,7 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "view", request.getView()); return fields; }) .setRequestBodyExtractor(request -> null) @@ -1833,6 +1879,10 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub { deleteDatacenterConnectorCallable; private final OperationCallable deleteDatacenterConnectorOperationCallable; + private final UnaryCallable upgradeApplianceCallable; + private final OperationCallable< + UpgradeApplianceRequest, UpgradeApplianceResponse, OperationMetadata> + upgradeApplianceOperationCallable; private final UnaryCallable createMigratingVmCallable; private final OperationCallable createMigratingVmOperationCallable; @@ -2044,6 +2094,11 @@ protected HttpJsonVmMigrationStub( .setMethodDescriptor(deleteDatacenterConnectorMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings upgradeApplianceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(upgradeApplianceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings createMigratingVmTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createMigratingVmMethodDescriptor) @@ -2311,6 +2366,15 @@ protected HttpJsonVmMigrationStub( settings.deleteDatacenterConnectorOperationSettings(), clientContext, httpJsonOperationsStub); + this.upgradeApplianceCallable = + callableFactory.createUnaryCallable( + upgradeApplianceTransportSettings, settings.upgradeApplianceSettings(), clientContext); + this.upgradeApplianceOperationCallable = + callableFactory.createOperationCallable( + upgradeApplianceTransportSettings, + settings.upgradeApplianceOperationSettings(), + clientContext, + httpJsonOperationsStub); this.createMigratingVmCallable = callableFactory.createUnaryCallable( createMigratingVmTransportSettings, @@ -2571,6 +2635,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(getDatacenterConnectorMethodDescriptor); methodDescriptors.add(createDatacenterConnectorMethodDescriptor); methodDescriptors.add(deleteDatacenterConnectorMethodDescriptor); + methodDescriptors.add(upgradeApplianceMethodDescriptor); methodDescriptors.add(createMigratingVmMethodDescriptor); methodDescriptors.add(listMigratingVmsMethodDescriptor); methodDescriptors.add(getMigratingVmMethodDescriptor); @@ -2744,6 +2809,17 @@ public UnaryCallable fetchInvento return deleteDatacenterConnectorOperationCallable; } + @Override + public UnaryCallable upgradeApplianceCallable() { + return upgradeApplianceCallable; + } + + @Override + public OperationCallable + upgradeApplianceOperationCallable() { + return upgradeApplianceOperationCallable; + } + @Override public UnaryCallable createMigratingVmCallable() { return createMigratingVmCallable; diff --git a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStub.java b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStub.java index 2458756f1fe1..1f2ad99a61e8 100644 --- a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStub.java +++ b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStub.java @@ -96,6 +96,8 @@ import com.google.cloud.vmmigration.v1.UpdateMigratingVmRequest; import com.google.cloud.vmmigration.v1.UpdateSourceRequest; import com.google.cloud.vmmigration.v1.UpdateTargetProjectRequest; +import com.google.cloud.vmmigration.v1.UpgradeApplianceRequest; +import com.google.cloud.vmmigration.v1.UpgradeApplianceResponse; import com.google.cloud.vmmigration.v1.UtilizationReport; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; @@ -238,6 +240,15 @@ public UnaryCallable fetchInvento throw new UnsupportedOperationException("Not implemented: deleteDatacenterConnectorCallable()"); } + public OperationCallable + upgradeApplianceOperationCallable() { + throw new UnsupportedOperationException("Not implemented: upgradeApplianceOperationCallable()"); + } + + public UnaryCallable upgradeApplianceCallable() { + throw new UnsupportedOperationException("Not implemented: upgradeApplianceCallable()"); + } + public OperationCallable createMigratingVmOperationCallable() { throw new UnsupportedOperationException( diff --git a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStubSettings.java b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStubSettings.java index 7deaf92ae551..775e0549cf93 100644 --- a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStubSettings.java +++ b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStubSettings.java @@ -122,6 +122,8 @@ import com.google.cloud.vmmigration.v1.UpdateMigratingVmRequest; import com.google.cloud.vmmigration.v1.UpdateSourceRequest; import com.google.cloud.vmmigration.v1.UpdateTargetProjectRequest; +import com.google.cloud.vmmigration.v1.UpgradeApplianceRequest; +import com.google.cloud.vmmigration.v1.UpgradeApplianceResponse; import com.google.cloud.vmmigration.v1.UtilizationReport; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; @@ -220,6 +222,10 @@ public class VmMigrationStubSettings extends StubSettings deleteDatacenterConnectorOperationSettings; + private final UnaryCallSettings upgradeApplianceSettings; + private final OperationCallSettings< + UpgradeApplianceRequest, UpgradeApplianceResponse, OperationMetadata> + upgradeApplianceOperationSettings; private final UnaryCallSettings createMigratingVmSettings; private final OperationCallSettings createMigratingVmOperationSettings; @@ -916,6 +922,17 @@ public UnaryCallSettings fetchInv return deleteDatacenterConnectorOperationSettings; } + /** Returns the object with the settings used for calls to upgradeAppliance. */ + public UnaryCallSettings upgradeApplianceSettings() { + return upgradeApplianceSettings; + } + + /** Returns the object with the settings used for calls to upgradeAppliance. */ + public OperationCallSettings + upgradeApplianceOperationSettings() { + return upgradeApplianceOperationSettings; + } + /** Returns the object with the settings used for calls to createMigratingVm. */ public UnaryCallSettings createMigratingVmSettings() { return createMigratingVmSettings; @@ -1317,6 +1334,8 @@ protected VmMigrationStubSettings(Builder settingsBuilder) throws IOException { deleteDatacenterConnectorSettings = settingsBuilder.deleteDatacenterConnectorSettings().build(); deleteDatacenterConnectorOperationSettings = settingsBuilder.deleteDatacenterConnectorOperationSettings().build(); + upgradeApplianceSettings = settingsBuilder.upgradeApplianceSettings().build(); + upgradeApplianceOperationSettings = settingsBuilder.upgradeApplianceOperationSettings().build(); createMigratingVmSettings = settingsBuilder.createMigratingVmSettings().build(); createMigratingVmOperationSettings = settingsBuilder.createMigratingVmOperationSettings().build(); @@ -1428,6 +1447,11 @@ public static class Builder extends StubSettings.Builder deleteDatacenterConnectorOperationSettings; + private final UnaryCallSettings.Builder + upgradeApplianceSettings; + private final OperationCallSettings.Builder< + UpgradeApplianceRequest, UpgradeApplianceResponse, OperationMetadata> + upgradeApplianceOperationSettings; private final UnaryCallSettings.Builder createMigratingVmSettings; private final OperationCallSettings.Builder< @@ -1614,6 +1638,8 @@ protected Builder(ClientContext clientContext) { createDatacenterConnectorOperationSettings = OperationCallSettings.newBuilder(); deleteDatacenterConnectorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteDatacenterConnectorOperationSettings = OperationCallSettings.newBuilder(); + upgradeApplianceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + upgradeApplianceOperationSettings = OperationCallSettings.newBuilder(); createMigratingVmSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createMigratingVmOperationSettings = OperationCallSettings.newBuilder(); listMigratingVmsSettings = PagedCallSettings.newBuilder(LIST_MIGRATING_VMS_PAGE_STR_FACT); @@ -1679,6 +1705,7 @@ protected Builder(ClientContext clientContext) { getDatacenterConnectorSettings, createDatacenterConnectorSettings, deleteDatacenterConnectorSettings, + upgradeApplianceSettings, createMigratingVmSettings, listMigratingVmsSettings, getMigratingVmSettings, @@ -1739,6 +1766,8 @@ protected Builder(VmMigrationStubSettings settings) { deleteDatacenterConnectorSettings = settings.deleteDatacenterConnectorSettings.toBuilder(); deleteDatacenterConnectorOperationSettings = settings.deleteDatacenterConnectorOperationSettings.toBuilder(); + upgradeApplianceSettings = settings.upgradeApplianceSettings.toBuilder(); + upgradeApplianceOperationSettings = settings.upgradeApplianceOperationSettings.toBuilder(); createMigratingVmSettings = settings.createMigratingVmSettings.toBuilder(); createMigratingVmOperationSettings = settings.createMigratingVmOperationSettings.toBuilder(); listMigratingVmsSettings = settings.listMigratingVmsSettings.toBuilder(); @@ -1808,6 +1837,7 @@ protected Builder(VmMigrationStubSettings settings) { getDatacenterConnectorSettings, createDatacenterConnectorSettings, deleteDatacenterConnectorSettings, + upgradeApplianceSettings, createMigratingVmSettings, listMigratingVmsSettings, getMigratingVmSettings, @@ -1936,6 +1966,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .upgradeApplianceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .createMigratingVmSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) @@ -2251,6 +2286,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .upgradeApplianceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(UpgradeApplianceResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + builder .createMigratingVmOperationSettings() .setInitialCallSettings( @@ -2870,6 +2929,21 @@ public UnaryCallSettings.Builder deleteSourceSet return deleteDatacenterConnectorOperationSettings; } + /** Returns the builder for the settings used for calls to upgradeAppliance. */ + public UnaryCallSettings.Builder + upgradeApplianceSettings() { + return upgradeApplianceSettings; + } + + /** Returns the builder for the settings used for calls to upgradeAppliance. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UpgradeApplianceRequest, UpgradeApplianceResponse, OperationMetadata> + upgradeApplianceOperationSettings() { + return upgradeApplianceOperationSettings; + } + /** Returns the builder for the settings used for calls to createMigratingVm. */ public UnaryCallSettings.Builder createMigratingVmSettings() { diff --git a/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/MockVmMigrationImpl.java b/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/MockVmMigrationImpl.java index 4c9340a6ecbe..64b8ea2153af 100644 --- a/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/MockVmMigrationImpl.java +++ b/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/MockVmMigrationImpl.java @@ -354,6 +354,27 @@ public void deleteDatacenterConnector( } } + @Override + public void upgradeAppliance( + UpgradeApplianceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpgradeAppliance, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void createMigratingVm( CreateMigratingVmRequest request, StreamObserver responseObserver) { diff --git a/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/VmMigrationClientHttpJsonTest.java b/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/VmMigrationClientHttpJsonTest.java index 169b6c2cca2f..7e75885c06b8 100644 --- a/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/VmMigrationClientHttpJsonTest.java +++ b/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/VmMigrationClientHttpJsonTest.java @@ -1196,6 +1196,10 @@ public void getDatacenterConnectorTest() throws Exception { .setBucket("bucket-1378203158") .setStateTime(Timestamp.newBuilder().build()) .setError(Status.newBuilder().build()) + .setApplianceInfrastructureVersion("applianceInfrastructureVersion560843272") + .setApplianceSoftwareVersion("applianceSoftwareVersion-1982719036") + .setAvailableVersions(AvailableUpdates.newBuilder().build()) + .setUpgradeStatus(UpgradeStatus.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1254,6 +1258,10 @@ public void getDatacenterConnectorTest2() throws Exception { .setBucket("bucket-1378203158") .setStateTime(Timestamp.newBuilder().build()) .setError(Status.newBuilder().build()) + .setApplianceInfrastructureVersion("applianceInfrastructureVersion560843272") + .setApplianceSoftwareVersion("applianceSoftwareVersion-1982719036") + .setAvailableVersions(AvailableUpdates.newBuilder().build()) + .setUpgradeStatus(UpgradeStatus.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1311,6 +1319,10 @@ public void createDatacenterConnectorTest() throws Exception { .setBucket("bucket-1378203158") .setStateTime(Timestamp.newBuilder().build()) .setError(Status.newBuilder().build()) + .setApplianceInfrastructureVersion("applianceInfrastructureVersion560843272") + .setApplianceSoftwareVersion("applianceSoftwareVersion-1982719036") + .setAvailableVersions(AvailableUpdates.newBuilder().build()) + .setUpgradeStatus(UpgradeStatus.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1380,6 +1392,10 @@ public void createDatacenterConnectorTest2() throws Exception { .setBucket("bucket-1378203158") .setStateTime(Timestamp.newBuilder().build()) .setError(Status.newBuilder().build()) + .setApplianceInfrastructureVersion("applianceInfrastructureVersion560843272") + .setApplianceSoftwareVersion("applianceSoftwareVersion-1982719036") + .setAvailableVersions(AvailableUpdates.newBuilder().build()) + .setUpgradeStatus(UpgradeStatus.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1528,6 +1544,66 @@ public void deleteDatacenterConnectorExceptionTest2() throws Exception { } } + @Test + public void upgradeApplianceTest() throws Exception { + UpgradeApplianceResponse expectedResponse = UpgradeApplianceResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("upgradeApplianceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + UpgradeApplianceRequest request = + UpgradeApplianceRequest.newBuilder() + .setDatacenterConnector( + DatacenterConnectorName.of( + "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]") + .toString()) + .setRequestId("requestId693933066") + .build(); + + UpgradeApplianceResponse actualResponse = client.upgradeApplianceAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void upgradeApplianceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UpgradeApplianceRequest request = + UpgradeApplianceRequest.newBuilder() + .setDatacenterConnector( + DatacenterConnectorName.of( + "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]") + .toString()) + .setRequestId("requestId693933066") + .build(); + client.upgradeApplianceAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void createMigratingVmTest() throws Exception { MigratingVm expectedResponse = @@ -1546,7 +1622,9 @@ public void createMigratingVmTest() throws Exception { .setCurrentSyncInfo(ReplicationCycle.newBuilder().build()) .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .putAllLabels(new HashMap()) + .addAllRecentCloneJobs(new ArrayList()) .setError(Status.newBuilder().build()) + .addAllRecentCutoverJobs(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1614,7 +1692,9 @@ public void createMigratingVmTest2() throws Exception { .setCurrentSyncInfo(ReplicationCycle.newBuilder().build()) .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .putAllLabels(new HashMap()) + .addAllRecentCloneJobs(new ArrayList()) .setError(Status.newBuilder().build()) + .addAllRecentCutoverJobs(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1782,7 +1862,9 @@ public void getMigratingVmTest() throws Exception { .setCurrentSyncInfo(ReplicationCycle.newBuilder().build()) .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .putAllLabels(new HashMap()) + .addAllRecentCloneJobs(new ArrayList()) .setError(Status.newBuilder().build()) + .addAllRecentCutoverJobs(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -1842,7 +1924,9 @@ public void getMigratingVmTest2() throws Exception { .setCurrentSyncInfo(ReplicationCycle.newBuilder().build()) .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .putAllLabels(new HashMap()) + .addAllRecentCloneJobs(new ArrayList()) .setError(Status.newBuilder().build()) + .addAllRecentCutoverJobs(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -1902,7 +1986,9 @@ public void updateMigratingVmTest() throws Exception { .setCurrentSyncInfo(ReplicationCycle.newBuilder().build()) .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .putAllLabels(new HashMap()) + .addAllRecentCloneJobs(new ArrayList()) .setError(Status.newBuilder().build()) + .addAllRecentCutoverJobs(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1928,7 +2014,9 @@ public void updateMigratingVmTest() throws Exception { .setCurrentSyncInfo(ReplicationCycle.newBuilder().build()) .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .putAllLabels(new HashMap()) + .addAllRecentCloneJobs(new ArrayList()) .setError(Status.newBuilder().build()) + .addAllRecentCutoverJobs(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1974,7 +2062,9 @@ public void updateMigratingVmExceptionTest() throws Exception { .setCurrentSyncInfo(ReplicationCycle.newBuilder().build()) .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .putAllLabels(new HashMap()) + .addAllRecentCloneJobs(new ArrayList()) .setError(Status.newBuilder().build()) + .addAllRecentCutoverJobs(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateMigratingVmAsync(migratingVm, updateMask).get(); @@ -2386,6 +2476,7 @@ public void createCloneJobTest() throws Exception { CloneJob expectedResponse = CloneJob.newBuilder() .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) .setName( CloneJobName.of( "[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CLONE_JOB]") @@ -2447,6 +2538,7 @@ public void createCloneJobTest2() throws Exception { CloneJob expectedResponse = CloneJob.newBuilder() .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) .setName( CloneJobName.of( "[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CLONE_JOB]") @@ -2708,6 +2800,7 @@ public void getCloneJobTest() throws Exception { CloneJob expectedResponse = CloneJob.newBuilder() .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) .setName( CloneJobName.of( "[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CLONE_JOB]") @@ -2760,6 +2853,7 @@ public void getCloneJobTest2() throws Exception { CloneJob expectedResponse = CloneJob.newBuilder() .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) .setName( CloneJobName.of( "[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CLONE_JOB]") @@ -2812,6 +2906,7 @@ public void createCutoverJobTest() throws Exception { CutoverJob expectedResponse = CutoverJob.newBuilder() .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) .setName( CutoverJobName.of( "[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CUTOVER_JOB]") @@ -2876,6 +2971,7 @@ public void createCutoverJobTest2() throws Exception { CutoverJob expectedResponse = CutoverJob.newBuilder() .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) .setName( CutoverJobName.of( "[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CUTOVER_JOB]") @@ -3141,6 +3237,7 @@ public void getCutoverJobTest() throws Exception { CutoverJob expectedResponse = CutoverJob.newBuilder() .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) .setName( CutoverJobName.of( "[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CUTOVER_JOB]") @@ -3196,6 +3293,7 @@ public void getCutoverJobTest2() throws Exception { CutoverJob expectedResponse = CutoverJob.newBuilder() .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) .setName( CutoverJobName.of( "[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CUTOVER_JOB]") diff --git a/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/VmMigrationClientTest.java b/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/VmMigrationClientTest.java index b4c6cee55ba3..6681df70397f 100644 --- a/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/VmMigrationClientTest.java +++ b/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/VmMigrationClientTest.java @@ -1102,6 +1102,10 @@ public void getDatacenterConnectorTest() throws Exception { .setBucket("bucket-1378203158") .setStateTime(Timestamp.newBuilder().build()) .setError(Status.newBuilder().build()) + .setApplianceInfrastructureVersion("applianceInfrastructureVersion560843272") + .setApplianceSoftwareVersion("applianceSoftwareVersion-1982719036") + .setAvailableVersions(AvailableUpdates.newBuilder().build()) + .setUpgradeStatus(UpgradeStatus.newBuilder().build()) .build(); mockVmMigration.addResponse(expectedResponse); @@ -1155,6 +1159,10 @@ public void getDatacenterConnectorTest2() throws Exception { .setBucket("bucket-1378203158") .setStateTime(Timestamp.newBuilder().build()) .setError(Status.newBuilder().build()) + .setApplianceInfrastructureVersion("applianceInfrastructureVersion560843272") + .setApplianceSoftwareVersion("applianceSoftwareVersion-1982719036") + .setAvailableVersions(AvailableUpdates.newBuilder().build()) + .setUpgradeStatus(UpgradeStatus.newBuilder().build()) .build(); mockVmMigration.addResponse(expectedResponse); @@ -1205,6 +1213,10 @@ public void createDatacenterConnectorTest() throws Exception { .setBucket("bucket-1378203158") .setStateTime(Timestamp.newBuilder().build()) .setError(Status.newBuilder().build()) + .setApplianceInfrastructureVersion("applianceInfrastructureVersion560843272") + .setApplianceSoftwareVersion("applianceSoftwareVersion-1982719036") + .setAvailableVersions(AvailableUpdates.newBuilder().build()) + .setUpgradeStatus(UpgradeStatus.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1274,6 +1286,10 @@ public void createDatacenterConnectorTest2() throws Exception { .setBucket("bucket-1378203158") .setStateTime(Timestamp.newBuilder().build()) .setError(Status.newBuilder().build()) + .setApplianceInfrastructureVersion("applianceInfrastructureVersion560843272") + .setApplianceSoftwareVersion("applianceSoftwareVersion-1982719036") + .setAvailableVersions(AvailableUpdates.newBuilder().build()) + .setUpgradeStatus(UpgradeStatus.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1416,6 +1432,64 @@ public void deleteDatacenterConnectorExceptionTest2() throws Exception { } } + @Test + public void upgradeApplianceTest() throws Exception { + UpgradeApplianceResponse expectedResponse = UpgradeApplianceResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("upgradeApplianceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmMigration.addResponse(resultOperation); + + UpgradeApplianceRequest request = + UpgradeApplianceRequest.newBuilder() + .setDatacenterConnector( + DatacenterConnectorName.of( + "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]") + .toString()) + .setRequestId("requestId693933066") + .build(); + + UpgradeApplianceResponse actualResponse = client.upgradeApplianceAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmMigration.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpgradeApplianceRequest actualRequest = ((UpgradeApplianceRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getDatacenterConnector(), actualRequest.getDatacenterConnector()); + Assert.assertEquals(request.getRequestId(), actualRequest.getRequestId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void upgradeApplianceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmMigration.addException(exception); + + try { + UpgradeApplianceRequest request = + UpgradeApplianceRequest.newBuilder() + .setDatacenterConnector( + DatacenterConnectorName.of( + "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]") + .toString()) + .setRequestId("requestId693933066") + .build(); + client.upgradeApplianceAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void createMigratingVmTest() throws Exception { MigratingVm expectedResponse = @@ -1434,7 +1508,9 @@ public void createMigratingVmTest() throws Exception { .setCurrentSyncInfo(ReplicationCycle.newBuilder().build()) .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .putAllLabels(new HashMap()) + .addAllRecentCloneJobs(new ArrayList()) .setError(Status.newBuilder().build()) + .addAllRecentCutoverJobs(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1501,7 +1577,9 @@ public void createMigratingVmTest2() throws Exception { .setCurrentSyncInfo(ReplicationCycle.newBuilder().build()) .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .putAllLabels(new HashMap()) + .addAllRecentCloneJobs(new ArrayList()) .setError(Status.newBuilder().build()) + .addAllRecentCutoverJobs(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1656,7 +1734,9 @@ public void getMigratingVmTest() throws Exception { .setCurrentSyncInfo(ReplicationCycle.newBuilder().build()) .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .putAllLabels(new HashMap()) + .addAllRecentCloneJobs(new ArrayList()) .setError(Status.newBuilder().build()) + .addAllRecentCutoverJobs(new ArrayList()) .build(); mockVmMigration.addResponse(expectedResponse); @@ -1710,7 +1790,9 @@ public void getMigratingVmTest2() throws Exception { .setCurrentSyncInfo(ReplicationCycle.newBuilder().build()) .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .putAllLabels(new HashMap()) + .addAllRecentCloneJobs(new ArrayList()) .setError(Status.newBuilder().build()) + .addAllRecentCutoverJobs(new ArrayList()) .build(); mockVmMigration.addResponse(expectedResponse); @@ -1762,7 +1844,9 @@ public void updateMigratingVmTest() throws Exception { .setCurrentSyncInfo(ReplicationCycle.newBuilder().build()) .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .putAllLabels(new HashMap()) + .addAllRecentCloneJobs(new ArrayList()) .setError(Status.newBuilder().build()) + .addAllRecentCutoverJobs(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2180,6 +2264,7 @@ public void createCloneJobTest() throws Exception { CloneJob expectedResponse = CloneJob.newBuilder() .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) .setName( CloneJobName.of( "[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CLONE_JOB]") @@ -2240,6 +2325,7 @@ public void createCloneJobTest2() throws Exception { CloneJob expectedResponse = CloneJob.newBuilder() .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) .setName( CloneJobName.of( "[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CLONE_JOB]") @@ -2476,6 +2562,7 @@ public void getCloneJobTest() throws Exception { CloneJob expectedResponse = CloneJob.newBuilder() .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) .setName( CloneJobName.of( "[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CLONE_JOB]") @@ -2522,6 +2609,7 @@ public void getCloneJobTest2() throws Exception { CloneJob expectedResponse = CloneJob.newBuilder() .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) .setName( CloneJobName.of( "[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CLONE_JOB]") @@ -2566,6 +2654,7 @@ public void createCutoverJobTest() throws Exception { CutoverJob expectedResponse = CutoverJob.newBuilder() .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) .setName( CutoverJobName.of( "[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CUTOVER_JOB]") @@ -2629,6 +2718,7 @@ public void createCutoverJobTest2() throws Exception { CutoverJob expectedResponse = CutoverJob.newBuilder() .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) .setName( CutoverJobName.of( "[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CUTOVER_JOB]") @@ -2869,6 +2959,7 @@ public void getCutoverJobTest() throws Exception { CutoverJob expectedResponse = CutoverJob.newBuilder() .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) .setName( CutoverJobName.of( "[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CUTOVER_JOB]") @@ -2918,6 +3009,7 @@ public void getCutoverJobTest2() throws Exception { CutoverJob expectedResponse = CutoverJob.newBuilder() .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) .setName( CutoverJobName.of( "[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CUTOVER_JOB]") diff --git a/java-vmmigration/grpc-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationGrpc.java b/java-vmmigration/grpc-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationGrpc.java index 5a50b1ee9878..d891578c23e0 100644 --- a/java-vmmigration/grpc-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationGrpc.java +++ b/java-vmmigration/grpc-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationGrpc.java @@ -694,6 +694,50 @@ private VmMigrationGrpc() {} return getDeleteDatacenterConnectorMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmmigration.v1.UpgradeApplianceRequest, com.google.longrunning.Operation> + getUpgradeApplianceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpgradeAppliance", + requestType = com.google.cloud.vmmigration.v1.UpgradeApplianceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmmigration.v1.UpgradeApplianceRequest, com.google.longrunning.Operation> + getUpgradeApplianceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmmigration.v1.UpgradeApplianceRequest, + com.google.longrunning.Operation> + getUpgradeApplianceMethod; + if ((getUpgradeApplianceMethod = VmMigrationGrpc.getUpgradeApplianceMethod) == null) { + synchronized (VmMigrationGrpc.class) { + if ((getUpgradeApplianceMethod = VmMigrationGrpc.getUpgradeApplianceMethod) == null) { + VmMigrationGrpc.getUpgradeApplianceMethod = + getUpgradeApplianceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpgradeAppliance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmmigration.v1.UpgradeApplianceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmMigrationMethodDescriptorSupplier("UpgradeAppliance")) + .build(); + } + } + } + return getUpgradeApplianceMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.vmmigration.v1.CreateMigratingVmRequest, com.google.longrunning.Operation> @@ -2254,6 +2298,21 @@ public void deleteDatacenterConnector( getDeleteDatacenterConnectorMethod(), responseObserver); } + /** + * + * + *
+     * Upgrades the appliance relate to this DatacenterConnector to the in-place
+     * updateable version.
+     * 
+ */ + public void upgradeAppliance( + com.google.cloud.vmmigration.v1.UpgradeApplianceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpgradeApplianceMethod(), responseObserver); + } + /** * * @@ -2778,6 +2837,12 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest, com.google.longrunning.Operation>( this, METHODID_DELETE_DATACENTER_CONNECTOR))) + .addMethod( + getUpgradeApplianceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmmigration.v1.UpgradeApplianceRequest, + com.google.longrunning.Operation>(this, METHODID_UPGRADE_APPLIANCE))) .addMethod( getCreateMigratingVmMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3214,6 +3279,23 @@ public void deleteDatacenterConnector( responseObserver); } + /** + * + * + *
+     * Upgrades the appliance relate to this DatacenterConnector to the in-place
+     * updateable version.
+     * 
+ */ + public void upgradeAppliance( + com.google.cloud.vmmigration.v1.UpgradeApplianceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpgradeApplianceMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -3906,6 +3988,20 @@ public com.google.longrunning.Operation deleteDatacenterConnector( getChannel(), getDeleteDatacenterConnectorMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Upgrades the appliance relate to this DatacenterConnector to the in-place
+     * updateable version.
+     * 
+ */ + public com.google.longrunning.Operation upgradeAppliance( + com.google.cloud.vmmigration.v1.UpgradeApplianceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpgradeApplianceMethod(), getCallOptions(), request); + } + /** * * @@ -4522,6 +4618,20 @@ protected VmMigrationFutureStub build( getChannel().newCall(getDeleteDatacenterConnectorMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Upgrades the appliance relate to this DatacenterConnector to the in-place
+     * updateable version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + upgradeAppliance(com.google.cloud.vmmigration.v1.UpgradeApplianceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpgradeApplianceMethod(), getCallOptions()), request); + } + /** * * @@ -4942,35 +5052,36 @@ protected VmMigrationFutureStub build( private static final int METHODID_GET_DATACENTER_CONNECTOR = 11; private static final int METHODID_CREATE_DATACENTER_CONNECTOR = 12; private static final int METHODID_DELETE_DATACENTER_CONNECTOR = 13; - private static final int METHODID_CREATE_MIGRATING_VM = 14; - private static final int METHODID_LIST_MIGRATING_VMS = 15; - private static final int METHODID_GET_MIGRATING_VM = 16; - private static final int METHODID_UPDATE_MIGRATING_VM = 17; - private static final int METHODID_DELETE_MIGRATING_VM = 18; - private static final int METHODID_START_MIGRATION = 19; - private static final int METHODID_RESUME_MIGRATION = 20; - private static final int METHODID_PAUSE_MIGRATION = 21; - private static final int METHODID_FINALIZE_MIGRATION = 22; - private static final int METHODID_CREATE_CLONE_JOB = 23; - private static final int METHODID_CANCEL_CLONE_JOB = 24; - private static final int METHODID_LIST_CLONE_JOBS = 25; - private static final int METHODID_GET_CLONE_JOB = 26; - private static final int METHODID_CREATE_CUTOVER_JOB = 27; - private static final int METHODID_CANCEL_CUTOVER_JOB = 28; - private static final int METHODID_LIST_CUTOVER_JOBS = 29; - private static final int METHODID_GET_CUTOVER_JOB = 30; - private static final int METHODID_LIST_GROUPS = 31; - private static final int METHODID_GET_GROUP = 32; - private static final int METHODID_CREATE_GROUP = 33; - private static final int METHODID_UPDATE_GROUP = 34; - private static final int METHODID_DELETE_GROUP = 35; - private static final int METHODID_ADD_GROUP_MIGRATION = 36; - private static final int METHODID_REMOVE_GROUP_MIGRATION = 37; - private static final int METHODID_LIST_TARGET_PROJECTS = 38; - private static final int METHODID_GET_TARGET_PROJECT = 39; - private static final int METHODID_CREATE_TARGET_PROJECT = 40; - private static final int METHODID_UPDATE_TARGET_PROJECT = 41; - private static final int METHODID_DELETE_TARGET_PROJECT = 42; + private static final int METHODID_UPGRADE_APPLIANCE = 14; + private static final int METHODID_CREATE_MIGRATING_VM = 15; + private static final int METHODID_LIST_MIGRATING_VMS = 16; + private static final int METHODID_GET_MIGRATING_VM = 17; + private static final int METHODID_UPDATE_MIGRATING_VM = 18; + private static final int METHODID_DELETE_MIGRATING_VM = 19; + private static final int METHODID_START_MIGRATION = 20; + private static final int METHODID_RESUME_MIGRATION = 21; + private static final int METHODID_PAUSE_MIGRATION = 22; + private static final int METHODID_FINALIZE_MIGRATION = 23; + private static final int METHODID_CREATE_CLONE_JOB = 24; + private static final int METHODID_CANCEL_CLONE_JOB = 25; + private static final int METHODID_LIST_CLONE_JOBS = 26; + private static final int METHODID_GET_CLONE_JOB = 27; + private static final int METHODID_CREATE_CUTOVER_JOB = 28; + private static final int METHODID_CANCEL_CUTOVER_JOB = 29; + private static final int METHODID_LIST_CUTOVER_JOBS = 30; + private static final int METHODID_GET_CUTOVER_JOB = 31; + private static final int METHODID_LIST_GROUPS = 32; + private static final int METHODID_GET_GROUP = 33; + private static final int METHODID_CREATE_GROUP = 34; + private static final int METHODID_UPDATE_GROUP = 35; + private static final int METHODID_DELETE_GROUP = 36; + private static final int METHODID_ADD_GROUP_MIGRATION = 37; + private static final int METHODID_REMOVE_GROUP_MIGRATION = 38; + private static final int METHODID_LIST_TARGET_PROJECTS = 39; + private static final int METHODID_GET_TARGET_PROJECT = 40; + private static final int METHODID_CREATE_TARGET_PROJECT = 41; + private static final int METHODID_UPDATE_TARGET_PROJECT = 42; + private static final int METHODID_DELETE_TARGET_PROJECT = 43; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -5068,6 +5179,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPGRADE_APPLIANCE: + serviceImpl.upgradeAppliance( + (com.google.cloud.vmmigration.v1.UpgradeApplianceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_CREATE_MIGRATING_VM: serviceImpl.createMigratingVm( (com.google.cloud.vmmigration.v1.CreateMigratingVmRequest) request, @@ -5303,6 +5419,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetDatacenterConnectorMethod()) .addMethod(getCreateDatacenterConnectorMethod()) .addMethod(getDeleteDatacenterConnectorMethod()) + .addMethod(getUpgradeApplianceMethod()) .addMethod(getCreateMigratingVmMethod()) .addMethod(getListMigratingVmsMethod()) .addMethod(getGetMigratingVmMethod()) diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ApplianceVersion.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ApplianceVersion.java new file mode 100644 index 000000000000..a1f6fe5b2b40 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ApplianceVersion.java @@ -0,0 +1,1085 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
+ * Describes an appliance version.
+ * 
+ * + * Protobuf type {@code google.cloud.vmmigration.v1.ApplianceVersion} + */ +public final class ApplianceVersion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.ApplianceVersion) + ApplianceVersionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplianceVersion.newBuilder() to construct. + private ApplianceVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplianceVersion() { + version_ = ""; + uri_ = ""; + releaseNotesUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApplianceVersion(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ApplianceVersion( + 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(); + + version_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + break; + } + case 24: + { + critical_ = input.readBool(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + releaseNotesUri_ = 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.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ApplianceVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ApplianceVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ApplianceVersion.class, + com.google.cloud.vmmigration.v1.ApplianceVersion.Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object version_; + /** + * + * + *
+   * The appliance version.
+   * 
+ * + * string version = 1; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * + * + *
+   * The appliance version.
+   * 
+ * + * string version = 1; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 2; + private volatile java.lang.Object uri_; + /** + * + * + *
+   * A link for downloading the version.
+   * 
+ * + * string uri = 2; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + * + * + *
+   * A link for downloading the version.
+   * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CRITICAL_FIELD_NUMBER = 3; + private boolean critical_; + /** + * + * + *
+   * Determine whether it's critical to upgrade the appliance to this version.
+   * 
+ * + * bool critical = 3; + * + * @return The critical. + */ + @java.lang.Override + public boolean getCritical() { + return critical_; + } + + public static final int RELEASE_NOTES_URI_FIELD_NUMBER = 4; + private volatile java.lang.Object releaseNotesUri_; + /** + * + * + *
+   * Link to a page that contains the version release notes.
+   * 
+ * + * string release_notes_uri = 4; + * + * @return The releaseNotesUri. + */ + @java.lang.Override + public java.lang.String getReleaseNotesUri() { + java.lang.Object ref = releaseNotesUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + releaseNotesUri_ = s; + return s; + } + } + /** + * + * + *
+   * Link to a page that contains the version release notes.
+   * 
+ * + * string release_notes_uri = 4; + * + * @return The bytes for releaseNotesUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReleaseNotesUriBytes() { + java.lang.Object ref = releaseNotesUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + releaseNotesUri_ = 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(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_); + } + if (critical_ != false) { + output.writeBool(3, critical_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseNotesUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, releaseNotesUri_); + } + 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(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_); + } + if (critical_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, critical_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseNotesUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, releaseNotesUri_); + } + size += unknownFields.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.vmmigration.v1.ApplianceVersion)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.ApplianceVersion other = + (com.google.cloud.vmmigration.v1.ApplianceVersion) obj; + + if (!getVersion().equals(other.getVersion())) return false; + if (!getUri().equals(other.getUri())) return false; + if (getCritical() != other.getCritical()) return false; + if (!getReleaseNotesUri().equals(other.getReleaseNotesUri())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + CRITICAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCritical()); + hash = (37 * hash) + RELEASE_NOTES_URI_FIELD_NUMBER; + hash = (53 * hash) + getReleaseNotesUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.ApplianceVersion parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ApplianceVersion 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.vmmigration.v1.ApplianceVersion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ApplianceVersion 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.vmmigration.v1.ApplianceVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ApplianceVersion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.ApplianceVersion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ApplianceVersion parseFrom( + 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.vmmigration.v1.ApplianceVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ApplianceVersion parseDelimitedFrom( + 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.vmmigration.v1.ApplianceVersion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ApplianceVersion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.vmmigration.v1.ApplianceVersion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Describes an appliance version.
+   * 
+ * + * Protobuf type {@code google.cloud.vmmigration.v1.ApplianceVersion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.ApplianceVersion) + com.google.cloud.vmmigration.v1.ApplianceVersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ApplianceVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ApplianceVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ApplianceVersion.class, + com.google.cloud.vmmigration.v1.ApplianceVersion.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.ApplianceVersion.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = ""; + + uri_ = ""; + + critical_ = false; + + releaseNotesUri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ApplianceVersion_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ApplianceVersion getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.ApplianceVersion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ApplianceVersion build() { + com.google.cloud.vmmigration.v1.ApplianceVersion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ApplianceVersion buildPartial() { + com.google.cloud.vmmigration.v1.ApplianceVersion result = + new com.google.cloud.vmmigration.v1.ApplianceVersion(this); + result.version_ = version_; + result.uri_ = uri_; + result.critical_ = critical_; + result.releaseNotesUri_ = releaseNotesUri_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor 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.vmmigration.v1.ApplianceVersion) { + return mergeFrom((com.google.cloud.vmmigration.v1.ApplianceVersion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.ApplianceVersion other) { + if (other == com.google.cloud.vmmigration.v1.ApplianceVersion.getDefaultInstance()) + return this; + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + if (other.getCritical() != false) { + setCritical(other.getCritical()); + } + if (!other.getReleaseNotesUri().isEmpty()) { + releaseNotesUri_ = other.releaseNotesUri_; + 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.vmmigration.v1.ApplianceVersion parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.vmmigration.v1.ApplianceVersion) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
+     * The appliance version.
+     * 
+ * + * string version = 1; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The appliance version.
+     * 
+ * + * string version = 1; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The appliance version.
+     * 
+ * + * string version = 1; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The appliance version.
+     * 
+ * + * string version = 1; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The appliance version.
+     * 
+ * + * string version = 1; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + /** + * + * + *
+     * A link for downloading the version.
+     * 
+ * + * string uri = 2; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A link for downloading the version.
+     * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A link for downloading the version.
+     * 
+ * + * string uri = 2; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A link for downloading the version.
+     * 
+ * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * A link for downloading the version.
+     * 
+ * + * string uri = 2; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + private boolean critical_; + /** + * + * + *
+     * Determine whether it's critical to upgrade the appliance to this version.
+     * 
+ * + * bool critical = 3; + * + * @return The critical. + */ + @java.lang.Override + public boolean getCritical() { + return critical_; + } + /** + * + * + *
+     * Determine whether it's critical to upgrade the appliance to this version.
+     * 
+ * + * bool critical = 3; + * + * @param value The critical to set. + * @return This builder for chaining. + */ + public Builder setCritical(boolean value) { + + critical_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Determine whether it's critical to upgrade the appliance to this version.
+     * 
+ * + * bool critical = 3; + * + * @return This builder for chaining. + */ + public Builder clearCritical() { + + critical_ = false; + onChanged(); + return this; + } + + private java.lang.Object releaseNotesUri_ = ""; + /** + * + * + *
+     * Link to a page that contains the version release notes.
+     * 
+ * + * string release_notes_uri = 4; + * + * @return The releaseNotesUri. + */ + public java.lang.String getReleaseNotesUri() { + java.lang.Object ref = releaseNotesUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + releaseNotesUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Link to a page that contains the version release notes.
+     * 
+ * + * string release_notes_uri = 4; + * + * @return The bytes for releaseNotesUri. + */ + public com.google.protobuf.ByteString getReleaseNotesUriBytes() { + java.lang.Object ref = releaseNotesUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + releaseNotesUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Link to a page that contains the version release notes.
+     * 
+ * + * string release_notes_uri = 4; + * + * @param value The releaseNotesUri to set. + * @return This builder for chaining. + */ + public Builder setReleaseNotesUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + releaseNotesUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Link to a page that contains the version release notes.
+     * 
+ * + * string release_notes_uri = 4; + * + * @return This builder for chaining. + */ + public Builder clearReleaseNotesUri() { + + releaseNotesUri_ = getDefaultInstance().getReleaseNotesUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Link to a page that contains the version release notes.
+     * 
+ * + * string release_notes_uri = 4; + * + * @param value The bytes for releaseNotesUri to set. + * @return This builder for chaining. + */ + public Builder setReleaseNotesUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + releaseNotesUri_ = 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.vmmigration.v1.ApplianceVersion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.ApplianceVersion) + private static final com.google.cloud.vmmigration.v1.ApplianceVersion DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.ApplianceVersion(); + } + + public static com.google.cloud.vmmigration.v1.ApplianceVersion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplianceVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplianceVersion(input, extensionRegistry); + } + }; + + 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.vmmigration.v1.ApplianceVersion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ApplianceVersionOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ApplianceVersionOrBuilder.java new file mode 100644 index 000000000000..56df310f070b --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ApplianceVersionOrBuilder.java @@ -0,0 +1,113 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +package com.google.cloud.vmmigration.v1; + +public interface ApplianceVersionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.ApplianceVersion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The appliance version.
+   * 
+ * + * string version = 1; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+   * The appliance version.
+   * 
+ * + * string version = 1; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+   * A link for downloading the version.
+   * 
+ * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
+   * A link for downloading the version.
+   * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * Determine whether it's critical to upgrade the appliance to this version.
+   * 
+ * + * bool critical = 3; + * + * @return The critical. + */ + boolean getCritical(); + + /** + * + * + *
+   * Link to a page that contains the version release notes.
+   * 
+ * + * string release_notes_uri = 4; + * + * @return The releaseNotesUri. + */ + java.lang.String getReleaseNotesUri(); + /** + * + * + *
+   * Link to a page that contains the version release notes.
+   * 
+ * + * string release_notes_uri = 4; + * + * @return The bytes for releaseNotesUri. + */ + com.google.protobuf.ByteString getReleaseNotesUriBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AvailableUpdates.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AvailableUpdates.java new file mode 100644 index 000000000000..315f007f7529 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AvailableUpdates.java @@ -0,0 +1,1067 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
+ * Holds informatiom about the available versions for upgrade.
+ * 
+ * + * Protobuf type {@code google.cloud.vmmigration.v1.AvailableUpdates} + */ +public final class AvailableUpdates extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.AvailableUpdates) + AvailableUpdatesOrBuilder { + private static final long serialVersionUID = 0L; + // Use AvailableUpdates.newBuilder() to construct. + private AvailableUpdates(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AvailableUpdates() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AvailableUpdates(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AvailableUpdates( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.vmmigration.v1.ApplianceVersion.Builder subBuilder = null; + if (newDeployableAppliance_ != null) { + subBuilder = newDeployableAppliance_.toBuilder(); + } + newDeployableAppliance_ = + input.readMessage( + com.google.cloud.vmmigration.v1.ApplianceVersion.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(newDeployableAppliance_); + newDeployableAppliance_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.cloud.vmmigration.v1.ApplianceVersion.Builder subBuilder = null; + if (inPlaceUpdate_ != null) { + subBuilder = inPlaceUpdate_.toBuilder(); + } + inPlaceUpdate_ = + input.readMessage( + com.google.cloud.vmmigration.v1.ApplianceVersion.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inPlaceUpdate_); + inPlaceUpdate_ = subBuilder.buildPartial(); + } + + 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.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AvailableUpdates_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AvailableUpdates_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AvailableUpdates.class, + com.google.cloud.vmmigration.v1.AvailableUpdates.Builder.class); + } + + public static final int NEW_DEPLOYABLE_APPLIANCE_FIELD_NUMBER = 1; + private com.google.cloud.vmmigration.v1.ApplianceVersion newDeployableAppliance_; + /** + * + * + *
+   * The newest deployable version of the appliance.
+   * The current appliance can't be updated into this version, and the owner
+   * must manually deploy this OVA to a new appliance.
+   * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion new_deployable_appliance = 1; + * + * @return Whether the newDeployableAppliance field is set. + */ + @java.lang.Override + public boolean hasNewDeployableAppliance() { + return newDeployableAppliance_ != null; + } + /** + * + * + *
+   * The newest deployable version of the appliance.
+   * The current appliance can't be updated into this version, and the owner
+   * must manually deploy this OVA to a new appliance.
+   * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion new_deployable_appliance = 1; + * + * @return The newDeployableAppliance. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ApplianceVersion getNewDeployableAppliance() { + return newDeployableAppliance_ == null + ? com.google.cloud.vmmigration.v1.ApplianceVersion.getDefaultInstance() + : newDeployableAppliance_; + } + /** + * + * + *
+   * The newest deployable version of the appliance.
+   * The current appliance can't be updated into this version, and the owner
+   * must manually deploy this OVA to a new appliance.
+   * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion new_deployable_appliance = 1; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ApplianceVersionOrBuilder + getNewDeployableApplianceOrBuilder() { + return getNewDeployableAppliance(); + } + + public static final int IN_PLACE_UPDATE_FIELD_NUMBER = 2; + private com.google.cloud.vmmigration.v1.ApplianceVersion inPlaceUpdate_; + /** + * + * + *
+   * The latest version for in place update.
+   * The current appliance can be updated to this version using the API or m4c
+   * CLI.
+   * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion in_place_update = 2; + * + * @return Whether the inPlaceUpdate field is set. + */ + @java.lang.Override + public boolean hasInPlaceUpdate() { + return inPlaceUpdate_ != null; + } + /** + * + * + *
+   * The latest version for in place update.
+   * The current appliance can be updated to this version using the API or m4c
+   * CLI.
+   * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion in_place_update = 2; + * + * @return The inPlaceUpdate. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ApplianceVersion getInPlaceUpdate() { + return inPlaceUpdate_ == null + ? com.google.cloud.vmmigration.v1.ApplianceVersion.getDefaultInstance() + : inPlaceUpdate_; + } + /** + * + * + *
+   * The latest version for in place update.
+   * The current appliance can be updated to this version using the API or m4c
+   * CLI.
+   * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion in_place_update = 2; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ApplianceVersionOrBuilder getInPlaceUpdateOrBuilder() { + return getInPlaceUpdate(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (newDeployableAppliance_ != null) { + output.writeMessage(1, getNewDeployableAppliance()); + } + if (inPlaceUpdate_ != null) { + output.writeMessage(2, getInPlaceUpdate()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (newDeployableAppliance_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNewDeployableAppliance()); + } + if (inPlaceUpdate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInPlaceUpdate()); + } + size += unknownFields.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.vmmigration.v1.AvailableUpdates)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.AvailableUpdates other = + (com.google.cloud.vmmigration.v1.AvailableUpdates) obj; + + if (hasNewDeployableAppliance() != other.hasNewDeployableAppliance()) return false; + if (hasNewDeployableAppliance()) { + if (!getNewDeployableAppliance().equals(other.getNewDeployableAppliance())) return false; + } + if (hasInPlaceUpdate() != other.hasInPlaceUpdate()) return false; + if (hasInPlaceUpdate()) { + if (!getInPlaceUpdate().equals(other.getInPlaceUpdate())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNewDeployableAppliance()) { + hash = (37 * hash) + NEW_DEPLOYABLE_APPLIANCE_FIELD_NUMBER; + hash = (53 * hash) + getNewDeployableAppliance().hashCode(); + } + if (hasInPlaceUpdate()) { + hash = (37 * hash) + IN_PLACE_UPDATE_FIELD_NUMBER; + hash = (53 * hash) + getInPlaceUpdate().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.AvailableUpdates parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AvailableUpdates 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.vmmigration.v1.AvailableUpdates parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AvailableUpdates 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.vmmigration.v1.AvailableUpdates parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AvailableUpdates parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.AvailableUpdates parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AvailableUpdates parseFrom( + 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.vmmigration.v1.AvailableUpdates parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AvailableUpdates parseDelimitedFrom( + 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.vmmigration.v1.AvailableUpdates parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AvailableUpdates parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.vmmigration.v1.AvailableUpdates prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Holds informatiom about the available versions for upgrade.
+   * 
+ * + * Protobuf type {@code google.cloud.vmmigration.v1.AvailableUpdates} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.AvailableUpdates) + com.google.cloud.vmmigration.v1.AvailableUpdatesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AvailableUpdates_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AvailableUpdates_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AvailableUpdates.class, + com.google.cloud.vmmigration.v1.AvailableUpdates.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.AvailableUpdates.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (newDeployableApplianceBuilder_ == null) { + newDeployableAppliance_ = null; + } else { + newDeployableAppliance_ = null; + newDeployableApplianceBuilder_ = null; + } + if (inPlaceUpdateBuilder_ == null) { + inPlaceUpdate_ = null; + } else { + inPlaceUpdate_ = null; + inPlaceUpdateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AvailableUpdates_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AvailableUpdates getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.AvailableUpdates.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AvailableUpdates build() { + com.google.cloud.vmmigration.v1.AvailableUpdates result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AvailableUpdates buildPartial() { + com.google.cloud.vmmigration.v1.AvailableUpdates result = + new com.google.cloud.vmmigration.v1.AvailableUpdates(this); + if (newDeployableApplianceBuilder_ == null) { + result.newDeployableAppliance_ = newDeployableAppliance_; + } else { + result.newDeployableAppliance_ = newDeployableApplianceBuilder_.build(); + } + if (inPlaceUpdateBuilder_ == null) { + result.inPlaceUpdate_ = inPlaceUpdate_; + } else { + result.inPlaceUpdate_ = inPlaceUpdateBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor 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.vmmigration.v1.AvailableUpdates) { + return mergeFrom((com.google.cloud.vmmigration.v1.AvailableUpdates) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.AvailableUpdates other) { + if (other == com.google.cloud.vmmigration.v1.AvailableUpdates.getDefaultInstance()) + return this; + if (other.hasNewDeployableAppliance()) { + mergeNewDeployableAppliance(other.getNewDeployableAppliance()); + } + if (other.hasInPlaceUpdate()) { + mergeInPlaceUpdate(other.getInPlaceUpdate()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final 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.vmmigration.v1.AvailableUpdates parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.vmmigration.v1.AvailableUpdates) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.vmmigration.v1.ApplianceVersion newDeployableAppliance_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ApplianceVersion, + com.google.cloud.vmmigration.v1.ApplianceVersion.Builder, + com.google.cloud.vmmigration.v1.ApplianceVersionOrBuilder> + newDeployableApplianceBuilder_; + /** + * + * + *
+     * The newest deployable version of the appliance.
+     * The current appliance can't be updated into this version, and the owner
+     * must manually deploy this OVA to a new appliance.
+     * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion new_deployable_appliance = 1; + * + * @return Whether the newDeployableAppliance field is set. + */ + public boolean hasNewDeployableAppliance() { + return newDeployableApplianceBuilder_ != null || newDeployableAppliance_ != null; + } + /** + * + * + *
+     * The newest deployable version of the appliance.
+     * The current appliance can't be updated into this version, and the owner
+     * must manually deploy this OVA to a new appliance.
+     * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion new_deployable_appliance = 1; + * + * @return The newDeployableAppliance. + */ + public com.google.cloud.vmmigration.v1.ApplianceVersion getNewDeployableAppliance() { + if (newDeployableApplianceBuilder_ == null) { + return newDeployableAppliance_ == null + ? com.google.cloud.vmmigration.v1.ApplianceVersion.getDefaultInstance() + : newDeployableAppliance_; + } else { + return newDeployableApplianceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The newest deployable version of the appliance.
+     * The current appliance can't be updated into this version, and the owner
+     * must manually deploy this OVA to a new appliance.
+     * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion new_deployable_appliance = 1; + */ + public Builder setNewDeployableAppliance( + com.google.cloud.vmmigration.v1.ApplianceVersion value) { + if (newDeployableApplianceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + newDeployableAppliance_ = value; + onChanged(); + } else { + newDeployableApplianceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The newest deployable version of the appliance.
+     * The current appliance can't be updated into this version, and the owner
+     * must manually deploy this OVA to a new appliance.
+     * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion new_deployable_appliance = 1; + */ + public Builder setNewDeployableAppliance( + com.google.cloud.vmmigration.v1.ApplianceVersion.Builder builderForValue) { + if (newDeployableApplianceBuilder_ == null) { + newDeployableAppliance_ = builderForValue.build(); + onChanged(); + } else { + newDeployableApplianceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The newest deployable version of the appliance.
+     * The current appliance can't be updated into this version, and the owner
+     * must manually deploy this OVA to a new appliance.
+     * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion new_deployable_appliance = 1; + */ + public Builder mergeNewDeployableAppliance( + com.google.cloud.vmmigration.v1.ApplianceVersion value) { + if (newDeployableApplianceBuilder_ == null) { + if (newDeployableAppliance_ != null) { + newDeployableAppliance_ = + com.google.cloud.vmmigration.v1.ApplianceVersion.newBuilder(newDeployableAppliance_) + .mergeFrom(value) + .buildPartial(); + } else { + newDeployableAppliance_ = value; + } + onChanged(); + } else { + newDeployableApplianceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The newest deployable version of the appliance.
+     * The current appliance can't be updated into this version, and the owner
+     * must manually deploy this OVA to a new appliance.
+     * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion new_deployable_appliance = 1; + */ + public Builder clearNewDeployableAppliance() { + if (newDeployableApplianceBuilder_ == null) { + newDeployableAppliance_ = null; + onChanged(); + } else { + newDeployableAppliance_ = null; + newDeployableApplianceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The newest deployable version of the appliance.
+     * The current appliance can't be updated into this version, and the owner
+     * must manually deploy this OVA to a new appliance.
+     * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion new_deployable_appliance = 1; + */ + public com.google.cloud.vmmigration.v1.ApplianceVersion.Builder + getNewDeployableApplianceBuilder() { + + onChanged(); + return getNewDeployableApplianceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The newest deployable version of the appliance.
+     * The current appliance can't be updated into this version, and the owner
+     * must manually deploy this OVA to a new appliance.
+     * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion new_deployable_appliance = 1; + */ + public com.google.cloud.vmmigration.v1.ApplianceVersionOrBuilder + getNewDeployableApplianceOrBuilder() { + if (newDeployableApplianceBuilder_ != null) { + return newDeployableApplianceBuilder_.getMessageOrBuilder(); + } else { + return newDeployableAppliance_ == null + ? com.google.cloud.vmmigration.v1.ApplianceVersion.getDefaultInstance() + : newDeployableAppliance_; + } + } + /** + * + * + *
+     * The newest deployable version of the appliance.
+     * The current appliance can't be updated into this version, and the owner
+     * must manually deploy this OVA to a new appliance.
+     * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion new_deployable_appliance = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ApplianceVersion, + com.google.cloud.vmmigration.v1.ApplianceVersion.Builder, + com.google.cloud.vmmigration.v1.ApplianceVersionOrBuilder> + getNewDeployableApplianceFieldBuilder() { + if (newDeployableApplianceBuilder_ == null) { + newDeployableApplianceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ApplianceVersion, + com.google.cloud.vmmigration.v1.ApplianceVersion.Builder, + com.google.cloud.vmmigration.v1.ApplianceVersionOrBuilder>( + getNewDeployableAppliance(), getParentForChildren(), isClean()); + newDeployableAppliance_ = null; + } + return newDeployableApplianceBuilder_; + } + + private com.google.cloud.vmmigration.v1.ApplianceVersion inPlaceUpdate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ApplianceVersion, + com.google.cloud.vmmigration.v1.ApplianceVersion.Builder, + com.google.cloud.vmmigration.v1.ApplianceVersionOrBuilder> + inPlaceUpdateBuilder_; + /** + * + * + *
+     * The latest version for in place update.
+     * The current appliance can be updated to this version using the API or m4c
+     * CLI.
+     * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion in_place_update = 2; + * + * @return Whether the inPlaceUpdate field is set. + */ + public boolean hasInPlaceUpdate() { + return inPlaceUpdateBuilder_ != null || inPlaceUpdate_ != null; + } + /** + * + * + *
+     * The latest version for in place update.
+     * The current appliance can be updated to this version using the API or m4c
+     * CLI.
+     * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion in_place_update = 2; + * + * @return The inPlaceUpdate. + */ + public com.google.cloud.vmmigration.v1.ApplianceVersion getInPlaceUpdate() { + if (inPlaceUpdateBuilder_ == null) { + return inPlaceUpdate_ == null + ? com.google.cloud.vmmigration.v1.ApplianceVersion.getDefaultInstance() + : inPlaceUpdate_; + } else { + return inPlaceUpdateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The latest version for in place update.
+     * The current appliance can be updated to this version using the API or m4c
+     * CLI.
+     * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion in_place_update = 2; + */ + public Builder setInPlaceUpdate(com.google.cloud.vmmigration.v1.ApplianceVersion value) { + if (inPlaceUpdateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inPlaceUpdate_ = value; + onChanged(); + } else { + inPlaceUpdateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The latest version for in place update.
+     * The current appliance can be updated to this version using the API or m4c
+     * CLI.
+     * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion in_place_update = 2; + */ + public Builder setInPlaceUpdate( + com.google.cloud.vmmigration.v1.ApplianceVersion.Builder builderForValue) { + if (inPlaceUpdateBuilder_ == null) { + inPlaceUpdate_ = builderForValue.build(); + onChanged(); + } else { + inPlaceUpdateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The latest version for in place update.
+     * The current appliance can be updated to this version using the API or m4c
+     * CLI.
+     * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion in_place_update = 2; + */ + public Builder mergeInPlaceUpdate(com.google.cloud.vmmigration.v1.ApplianceVersion value) { + if (inPlaceUpdateBuilder_ == null) { + if (inPlaceUpdate_ != null) { + inPlaceUpdate_ = + com.google.cloud.vmmigration.v1.ApplianceVersion.newBuilder(inPlaceUpdate_) + .mergeFrom(value) + .buildPartial(); + } else { + inPlaceUpdate_ = value; + } + onChanged(); + } else { + inPlaceUpdateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The latest version for in place update.
+     * The current appliance can be updated to this version using the API or m4c
+     * CLI.
+     * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion in_place_update = 2; + */ + public Builder clearInPlaceUpdate() { + if (inPlaceUpdateBuilder_ == null) { + inPlaceUpdate_ = null; + onChanged(); + } else { + inPlaceUpdate_ = null; + inPlaceUpdateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The latest version for in place update.
+     * The current appliance can be updated to this version using the API or m4c
+     * CLI.
+     * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion in_place_update = 2; + */ + public com.google.cloud.vmmigration.v1.ApplianceVersion.Builder getInPlaceUpdateBuilder() { + + onChanged(); + return getInPlaceUpdateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The latest version for in place update.
+     * The current appliance can be updated to this version using the API or m4c
+     * CLI.
+     * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion in_place_update = 2; + */ + public com.google.cloud.vmmigration.v1.ApplianceVersionOrBuilder getInPlaceUpdateOrBuilder() { + if (inPlaceUpdateBuilder_ != null) { + return inPlaceUpdateBuilder_.getMessageOrBuilder(); + } else { + return inPlaceUpdate_ == null + ? com.google.cloud.vmmigration.v1.ApplianceVersion.getDefaultInstance() + : inPlaceUpdate_; + } + } + /** + * + * + *
+     * The latest version for in place update.
+     * The current appliance can be updated to this version using the API or m4c
+     * CLI.
+     * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion in_place_update = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ApplianceVersion, + com.google.cloud.vmmigration.v1.ApplianceVersion.Builder, + com.google.cloud.vmmigration.v1.ApplianceVersionOrBuilder> + getInPlaceUpdateFieldBuilder() { + if (inPlaceUpdateBuilder_ == null) { + inPlaceUpdateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ApplianceVersion, + com.google.cloud.vmmigration.v1.ApplianceVersion.Builder, + com.google.cloud.vmmigration.v1.ApplianceVersionOrBuilder>( + getInPlaceUpdate(), getParentForChildren(), isClean()); + inPlaceUpdate_ = null; + } + return inPlaceUpdateBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.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.vmmigration.v1.AvailableUpdates) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.AvailableUpdates) + private static final com.google.cloud.vmmigration.v1.AvailableUpdates DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.AvailableUpdates(); + } + + public static com.google.cloud.vmmigration.v1.AvailableUpdates getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvailableUpdates parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AvailableUpdates(input, extensionRegistry); + } + }; + + 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.vmmigration.v1.AvailableUpdates getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AvailableUpdatesOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AvailableUpdatesOrBuilder.java new file mode 100644 index 000000000000..1dc284aeab99 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AvailableUpdatesOrBuilder.java @@ -0,0 +1,107 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +package com.google.cloud.vmmigration.v1; + +public interface AvailableUpdatesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.AvailableUpdates) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The newest deployable version of the appliance.
+   * The current appliance can't be updated into this version, and the owner
+   * must manually deploy this OVA to a new appliance.
+   * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion new_deployable_appliance = 1; + * + * @return Whether the newDeployableAppliance field is set. + */ + boolean hasNewDeployableAppliance(); + /** + * + * + *
+   * The newest deployable version of the appliance.
+   * The current appliance can't be updated into this version, and the owner
+   * must manually deploy this OVA to a new appliance.
+   * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion new_deployable_appliance = 1; + * + * @return The newDeployableAppliance. + */ + com.google.cloud.vmmigration.v1.ApplianceVersion getNewDeployableAppliance(); + /** + * + * + *
+   * The newest deployable version of the appliance.
+   * The current appliance can't be updated into this version, and the owner
+   * must manually deploy this OVA to a new appliance.
+   * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion new_deployable_appliance = 1; + */ + com.google.cloud.vmmigration.v1.ApplianceVersionOrBuilder getNewDeployableApplianceOrBuilder(); + + /** + * + * + *
+   * The latest version for in place update.
+   * The current appliance can be updated to this version using the API or m4c
+   * CLI.
+   * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion in_place_update = 2; + * + * @return Whether the inPlaceUpdate field is set. + */ + boolean hasInPlaceUpdate(); + /** + * + * + *
+   * The latest version for in place update.
+   * The current appliance can be updated to this version using the API or m4c
+   * CLI.
+   * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion in_place_update = 2; + * + * @return The inPlaceUpdate. + */ + com.google.cloud.vmmigration.v1.ApplianceVersion getInPlaceUpdate(); + /** + * + * + *
+   * The latest version for in place update.
+   * The current appliance can be updated to this version using the API or m4c
+   * CLI.
+   * 
+ * + * .google.cloud.vmmigration.v1.ApplianceVersion in_place_update = 2; + */ + com.google.cloud.vmmigration.v1.ApplianceVersionOrBuilder getInPlaceUpdateOrBuilder(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CloneJob.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CloneJob.java index 734677a95824..56eb23a726f9 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CloneJob.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CloneJob.java @@ -156,6 +156,21 @@ private CloneJob( targetVmDetails_ = subBuilder.buildPartial(); } targetVmDetailsCase_ = 20; + break; + } + case 178: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + break; } default: @@ -572,8 +587,8 @@ public boolean hasComputeEngineTargetDetails() { * * *
-   * Output only. The time the clone job was created (as an API call, not when it was
-   * actually created in the target).
+   * Output only. The time the clone job was created (as an API call, not when
+   * it was actually created in the target).
    * 
* * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -589,8 +604,8 @@ public boolean hasCreateTime() { * * *
-   * Output only. The time the clone job was created (as an API call, not when it was
-   * actually created in the target).
+   * Output only. The time the clone job was created (as an API call, not when
+   * it was actually created in the target).
    * 
* * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -606,8 +621,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-   * Output only. The time the clone job was created (as an API call, not when it was
-   * actually created in the target).
+   * Output only. The time the clone job was created (as an API call, not when
+   * it was actually created in the target).
    * 
* * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -618,16 +633,65 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); } + public static final int END_TIME_FIELD_NUMBER = 22; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * Output only. The time the clone job was ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * Output only. The time the clone job was ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * Output only. The time the clone job was ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** * * *
-   * The name of the clone.
+   * Output only. The name of the clone.
    * 
* - * string name = 3; + * string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -647,10 +711,10 @@ public java.lang.String getName() { * * *
-   * The name of the clone.
+   * Output only. The name of the clone.
    * 
* - * string name = 3; + * string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -762,7 +826,8 @@ public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { * * *
-   * Output only. Provides details for the errors that led to the Clone Job's state.
+   * Output only. Provides details for the errors that led to the Clone Job's
+   * state.
    * 
* * .google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -777,7 +842,8 @@ public boolean hasError() { * * *
-   * Output only. Provides details for the errors that led to the Clone Job's state.
+   * Output only. Provides details for the errors that led to the Clone Job's
+   * state.
    * 
* * .google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -792,7 +858,8 @@ public com.google.rpc.Status getError() { * * *
-   * Output only. Provides details for the errors that led to the Clone Job's state.
+   * Output only. Provides details for the errors that led to the Clone Job's
+   * state.
    * 
* * .google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -835,6 +902,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 20, (com.google.cloud.vmmigration.v1.ComputeEngineTargetDetails) targetVmDetails_); } + if (endTime_ != null) { + output.writeMessage(22, getEndTime()); + } unknownFields.writeTo(output); } @@ -864,6 +934,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 20, (com.google.cloud.vmmigration.v1.ComputeEngineTargetDetails) targetVmDetails_); } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getEndTime()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -883,6 +956,10 @@ public boolean equals(final java.lang.Object obj) { if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } if (!getName().equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasStateTime() != other.hasStateTime()) return false; @@ -917,6 +994,10 @@ public int hashCode() { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; @@ -1097,6 +1178,12 @@ public Builder clear() { createTime_ = null; createTimeBuilder_ = null; } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } name_ = ""; state_ = 0; @@ -1154,6 +1241,11 @@ public com.google.cloud.vmmigration.v1.CloneJob buildPartial() { } else { result.createTime_ = createTimeBuilder_.build(); } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } result.name_ = name_; result.state_ = state_; if (stateTimeBuilder_ == null) { @@ -1219,6 +1311,9 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.CloneJob other) { if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1532,8 +1627,8 @@ public Builder clearComputeEngineTargetDetails() { * * *
-     * Output only. The time the clone job was created (as an API call, not when it was
-     * actually created in the target).
+     * Output only. The time the clone job was created (as an API call, not when
+     * it was actually created in the target).
      * 
* * @@ -1549,8 +1644,8 @@ public boolean hasCreateTime() { * * *
-     * Output only. The time the clone job was created (as an API call, not when it was
-     * actually created in the target).
+     * Output only. The time the clone job was created (as an API call, not when
+     * it was actually created in the target).
      * 
* * @@ -1572,8 +1667,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-     * Output only. The time the clone job was created (as an API call, not when it was
-     * actually created in the target).
+     * Output only. The time the clone job was created (as an API call, not when
+     * it was actually created in the target).
      * 
* * @@ -1597,8 +1692,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The time the clone job was created (as an API call, not when it was
-     * actually created in the target).
+     * Output only. The time the clone job was created (as an API call, not when
+     * it was actually created in the target).
      * 
* * @@ -1619,8 +1714,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. The time the clone job was created (as an API call, not when it was
-     * actually created in the target).
+     * Output only. The time the clone job was created (as an API call, not when
+     * it was actually created in the target).
      * 
* * @@ -1646,8 +1741,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The time the clone job was created (as an API call, not when it was
-     * actually created in the target).
+     * Output only. The time the clone job was created (as an API call, not when
+     * it was actually created in the target).
      * 
* * @@ -1669,8 +1764,8 @@ public Builder clearCreateTime() { * * *
-     * Output only. The time the clone job was created (as an API call, not when it was
-     * actually created in the target).
+     * Output only. The time the clone job was created (as an API call, not when
+     * it was actually created in the target).
      * 
* * @@ -1686,8 +1781,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * * *
-     * Output only. The time the clone job was created (as an API call, not when it was
-     * actually created in the target).
+     * Output only. The time the clone job was created (as an API call, not when
+     * it was actually created in the target).
      * 
* * @@ -1707,8 +1802,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * Output only. The time the clone job was created (as an API call, not when it was
-     * actually created in the target).
+     * Output only. The time the clone job was created (as an API call, not when
+     * it was actually created in the target).
      * 
* * @@ -1732,15 +1827,203 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTimeBuilder_; } + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * Output only. The time the clone job was ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * Output only. The time the clone job was ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The time the clone job was ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time the clone job was ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The time the clone job was ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time the clone job was ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The time the clone job was ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time the clone job was ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * Output only. The time the clone job was ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + private java.lang.Object name_ = ""; /** * * *
-     * The name of the clone.
+     * Output only. The name of the clone.
      * 
* - * string name = 3; + * string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -1759,10 +2042,10 @@ public java.lang.String getName() { * * *
-     * The name of the clone.
+     * Output only. The name of the clone.
      * 
* - * string name = 3; + * string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -1781,10 +2064,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The name of the clone.
+     * Output only. The name of the clone.
      * 
* - * string name = 3; + * string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The name to set. * @return This builder for chaining. @@ -1802,10 +2085,10 @@ public Builder setName(java.lang.String value) { * * *
-     * The name of the clone.
+     * Output only. The name of the clone.
      * 
* - * string name = 3; + * string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1819,10 +2102,10 @@ public Builder clearName() { * * *
-     * The name of the clone.
+     * Output only. The name of the clone.
      * 
* - * string name = 3; + * string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -2144,7 +2427,8 @@ public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { * * *
-     * Output only. Provides details for the errors that led to the Clone Job's state.
+     * Output only. Provides details for the errors that led to the Clone Job's
+     * state.
      * 
* * .google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2158,7 +2442,8 @@ public boolean hasError() { * * *
-     * Output only. Provides details for the errors that led to the Clone Job's state.
+     * Output only. Provides details for the errors that led to the Clone Job's
+     * state.
      * 
* * .google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2176,7 +2461,8 @@ public com.google.rpc.Status getError() { * * *
-     * Output only. Provides details for the errors that led to the Clone Job's state.
+     * Output only. Provides details for the errors that led to the Clone Job's
+     * state.
      * 
* * .google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2198,7 +2484,8 @@ public Builder setError(com.google.rpc.Status value) { * * *
-     * Output only. Provides details for the errors that led to the Clone Job's state.
+     * Output only. Provides details for the errors that led to the Clone Job's
+     * state.
      * 
* * .google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2217,7 +2504,8 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { * * *
-     * Output only. Provides details for the errors that led to the Clone Job's state.
+     * Output only. Provides details for the errors that led to the Clone Job's
+     * state.
      * 
* * .google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2240,7 +2528,8 @@ public Builder mergeError(com.google.rpc.Status value) { * * *
-     * Output only. Provides details for the errors that led to the Clone Job's state.
+     * Output only. Provides details for the errors that led to the Clone Job's
+     * state.
      * 
* * .google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2260,7 +2549,8 @@ public Builder clearError() { * * *
-     * Output only. Provides details for the errors that led to the Clone Job's state.
+     * Output only. Provides details for the errors that led to the Clone Job's
+     * state.
      * 
* * .google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2274,7 +2564,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() { * * *
-     * Output only. Provides details for the errors that led to the Clone Job's state.
+     * Output only. Provides details for the errors that led to the Clone Job's
+     * state.
      * 
* * .google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2290,7 +2581,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * * *
-     * Output only. Provides details for the errors that led to the Clone Job's state.
+     * Output only. Provides details for the errors that led to the Clone Job's
+     * state.
      * 
* * .google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CloneJobOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CloneJobOrBuilder.java index 9e1d2b377e34..1690bf07d2b0 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CloneJobOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CloneJobOrBuilder.java @@ -69,8 +69,8 @@ public interface CloneJobOrBuilder * * *
-   * Output only. The time the clone job was created (as an API call, not when it was
-   * actually created in the target).
+   * Output only. The time the clone job was created (as an API call, not when
+   * it was actually created in the target).
    * 
* * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -83,8 +83,8 @@ public interface CloneJobOrBuilder * * *
-   * Output only. The time the clone job was created (as an API call, not when it was
-   * actually created in the target).
+   * Output only. The time the clone job was created (as an API call, not when
+   * it was actually created in the target).
    * 
* * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -97,8 +97,8 @@ public interface CloneJobOrBuilder * * *
-   * Output only. The time the clone job was created (as an API call, not when it was
-   * actually created in the target).
+   * Output only. The time the clone job was created (as an API call, not when
+   * it was actually created in the target).
    * 
* * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -110,10 +110,48 @@ public interface CloneJobOrBuilder * * *
-   * The name of the clone.
+   * Output only. The time the clone job was ended.
    * 
* - * string name = 3; + * .google.protobuf.Timestamp end_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * Output only. The time the clone job was ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * Output only. The time the clone job was ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The name of the clone.
+   * 
+ * + * string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -122,10 +160,10 @@ public interface CloneJobOrBuilder * * *
-   * The name of the clone.
+   * Output only. The name of the clone.
    * 
* - * string name = 3; + * string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -202,7 +240,8 @@ public interface CloneJobOrBuilder * * *
-   * Output only. Provides details for the errors that led to the Clone Job's state.
+   * Output only. Provides details for the errors that led to the Clone Job's
+   * state.
    * 
* * .google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -214,7 +253,8 @@ public interface CloneJobOrBuilder * * *
-   * Output only. Provides details for the errors that led to the Clone Job's state.
+   * Output only. Provides details for the errors that led to the Clone Job's
+   * state.
    * 
* * .google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -226,7 +266,8 @@ public interface CloneJobOrBuilder * * *
-   * Output only. Provides details for the errors that led to the Clone Job's state.
+   * Output only. Provides details for the errors that led to the Clone Job's
+   * state.
    * 
* * .google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineBootOption.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineBootOption.java index a5ff7dc46266..cd5fe0e05d18 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineBootOption.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineBootOption.java @@ -153,7 +153,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vmmigration.v1.VmMigrationProto.getDescriptor().getEnumTypes().get(3); + return com.google.cloud.vmmigration.v1.VmMigrationProto.getDescriptor().getEnumTypes().get(4); } private static final ComputeEngineBootOption[] VALUES = values(); diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDiskType.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDiskType.java index fe8e44f567a4..b0ab51d2dc5c 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDiskType.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDiskType.java @@ -177,7 +177,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vmmigration.v1.VmMigrationProto.getDescriptor().getEnumTypes().get(1); + return com.google.cloud.vmmigration.v1.VmMigrationProto.getDescriptor().getEnumTypes().get(2); } private static final ComputeEngineDiskType[] VALUES = values(); diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineLicenseType.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineLicenseType.java index 5027bd55d6ca..e32dc8c8a84a 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineLicenseType.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineLicenseType.java @@ -153,7 +153,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vmmigration.v1.VmMigrationProto.getDescriptor().getEnumTypes().get(2); + return com.google.cloud.vmmigration.v1.VmMigrationProto.getDescriptor().getEnumTypes().get(3); } private static final ComputeEngineLicenseType[] VALUES = values(); diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDefaults.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDefaults.java index 65fe076fd96d..cea0c106baf1 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDefaults.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDefaults.java @@ -50,6 +50,8 @@ private ComputeEngineTargetDefaults() { diskType_ = 0; licenseType_ = 0; bootOption_ = 0; + additionalLicenses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + hostname_ = ""; } @java.lang.Override @@ -234,6 +236,23 @@ private ComputeEngineTargetDefaults( metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); break; } + case 138: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + additionalLicenses_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + additionalLicenses_.add(s); + break; + } + case 146: + { + java.lang.String s = input.readStringRequireUtf8(); + + hostname_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -256,6 +275,9 @@ private ComputeEngineTargetDefaults( if (((mutable_bitField0_ & 0x00000002) != 0)) { networkInterfaces_ = java.util.Collections.unmodifiableList(networkInterfaces_); } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + additionalLicenses_ = additionalLicenses_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -1154,6 +1176,116 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) { return map.get(key); } + public static final int ADDITIONAL_LICENSES_FIELD_NUMBER = 17; + private com.google.protobuf.LazyStringList additionalLicenses_; + /** + * + * + *
+   * Additional licenses to assign to the VM.
+   * 
+ * + * repeated string additional_licenses = 17; + * + * @return A list containing the additionalLicenses. + */ + public com.google.protobuf.ProtocolStringList getAdditionalLicensesList() { + return additionalLicenses_; + } + /** + * + * + *
+   * Additional licenses to assign to the VM.
+   * 
+ * + * repeated string additional_licenses = 17; + * + * @return The count of additionalLicenses. + */ + public int getAdditionalLicensesCount() { + return additionalLicenses_.size(); + } + /** + * + * + *
+   * Additional licenses to assign to the VM.
+   * 
+ * + * repeated string additional_licenses = 17; + * + * @param index The index of the element to return. + * @return The additionalLicenses at the given index. + */ + public java.lang.String getAdditionalLicenses(int index) { + return additionalLicenses_.get(index); + } + /** + * + * + *
+   * Additional licenses to assign to the VM.
+   * 
+ * + * repeated string additional_licenses = 17; + * + * @param index The index of the value to return. + * @return The bytes of the additionalLicenses at the given index. + */ + public com.google.protobuf.ByteString getAdditionalLicensesBytes(int index) { + return additionalLicenses_.getByteString(index); + } + + public static final int HOSTNAME_FIELD_NUMBER = 18; + private volatile java.lang.Object hostname_; + /** + * + * + *
+   * The hostname to assign to the VM.
+   * 
+ * + * string hostname = 18; + * + * @return The hostname. + */ + @java.lang.Override + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } + } + /** + * + * + *
+   * The hostname to assign to the VM.
+   * 
+ * + * string hostname = 18; + * + * @return The bytes for hostname. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1223,6 +1355,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 16); + for (int i = 0; i < additionalLicenses_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, additionalLicenses_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, hostname_); + } unknownFields.writeTo(output); } @@ -1309,6 +1447,17 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, metadata__); } + { + int dataSize = 0; + for (int i = 0; i < additionalLicenses_.size(); i++) { + dataSize += computeStringSizeNoTag(additionalLicenses_.getRaw(i)); + } + size += dataSize; + size += 2 * getAdditionalLicensesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, hostname_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1347,6 +1496,8 @@ public boolean equals(final java.lang.Object obj) { if (getSecureBoot() != other.getSecureBoot()) return false; if (bootOption_ != other.bootOption_) return false; if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; + if (!getAdditionalLicensesList().equals(other.getAdditionalLicensesList())) return false; + if (!getHostname().equals(other.getHostname())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1402,6 +1553,12 @@ public int hashCode() { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetMetadata().hashCode(); } + if (getAdditionalLicensesCount() > 0) { + hash = (37 * hash) + ADDITIONAL_LICENSES_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalLicensesList().hashCode(); + } + hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostname().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1617,6 +1774,10 @@ public Builder clear() { bootOption_ = 0; internalGetMutableMetadata().clear(); + additionalLicenses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + hostname_ = ""; + return this; } @@ -1683,6 +1844,12 @@ public com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults buildPartial( result.bootOption_ = bootOption_; result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); + if (((bitField0_ & 0x00000010) != 0)) { + additionalLicenses_ = additionalLicenses_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.additionalLicenses_ = additionalLicenses_; + result.hostname_ = hostname_; onBuilt(); return result; } @@ -1814,6 +1981,20 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.ComputeEngineTargetDefa setBootOptionValue(other.getBootOptionValue()); } internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + if (!other.additionalLicenses_.isEmpty()) { + if (additionalLicenses_.isEmpty()) { + additionalLicenses_ = other.additionalLicenses_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.addAll(other.additionalLicenses_); + } + onChanged(); + } + if (!other.getHostname().isEmpty()) { + hostname_ = other.hostname_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -4068,6 +4249,280 @@ public Builder putAllMetadata(java.util.Map return this; } + private com.google.protobuf.LazyStringList additionalLicenses_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAdditionalLicensesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + additionalLicenses_ = new com.google.protobuf.LazyStringArrayList(additionalLicenses_); + bitField0_ |= 0x00000010; + } + } + /** + * + * + *
+     * Additional licenses to assign to the VM.
+     * 
+ * + * repeated string additional_licenses = 17; + * + * @return A list containing the additionalLicenses. + */ + public com.google.protobuf.ProtocolStringList getAdditionalLicensesList() { + return additionalLicenses_.getUnmodifiableView(); + } + /** + * + * + *
+     * Additional licenses to assign to the VM.
+     * 
+ * + * repeated string additional_licenses = 17; + * + * @return The count of additionalLicenses. + */ + public int getAdditionalLicensesCount() { + return additionalLicenses_.size(); + } + /** + * + * + *
+     * Additional licenses to assign to the VM.
+     * 
+ * + * repeated string additional_licenses = 17; + * + * @param index The index of the element to return. + * @return The additionalLicenses at the given index. + */ + public java.lang.String getAdditionalLicenses(int index) { + return additionalLicenses_.get(index); + } + /** + * + * + *
+     * Additional licenses to assign to the VM.
+     * 
+ * + * repeated string additional_licenses = 17; + * + * @param index The index of the value to return. + * @return The bytes of the additionalLicenses at the given index. + */ + public com.google.protobuf.ByteString getAdditionalLicensesBytes(int index) { + return additionalLicenses_.getByteString(index); + } + /** + * + * + *
+     * Additional licenses to assign to the VM.
+     * 
+ * + * repeated string additional_licenses = 17; + * + * @param index The index to set the value at. + * @param value The additionalLicenses to set. + * @return This builder for chaining. + */ + public Builder setAdditionalLicenses(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Additional licenses to assign to the VM.
+     * 
+ * + * repeated string additional_licenses = 17; + * + * @param value The additionalLicenses to add. + * @return This builder for chaining. + */ + public Builder addAdditionalLicenses(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Additional licenses to assign to the VM.
+     * 
+ * + * repeated string additional_licenses = 17; + * + * @param values The additionalLicenses to add. + * @return This builder for chaining. + */ + public Builder addAllAdditionalLicenses(java.lang.Iterable values) { + ensureAdditionalLicensesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalLicenses_); + onChanged(); + return this; + } + /** + * + * + *
+     * Additional licenses to assign to the VM.
+     * 
+ * + * repeated string additional_licenses = 17; + * + * @return This builder for chaining. + */ + public Builder clearAdditionalLicenses() { + additionalLicenses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Additional licenses to assign to the VM.
+     * 
+ * + * repeated string additional_licenses = 17; + * + * @param value The bytes of the additionalLicenses to add. + * @return This builder for chaining. + */ + public Builder addAdditionalLicensesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.add(value); + onChanged(); + return this; + } + + private java.lang.Object hostname_ = ""; + /** + * + * + *
+     * The hostname to assign to the VM.
+     * 
+ * + * string hostname = 18; + * + * @return The hostname. + */ + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The hostname to assign to the VM.
+     * 
+ * + * string hostname = 18; + * + * @return The bytes for hostname. + */ + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The hostname to assign to the VM.
+     * 
+ * + * string hostname = 18; + * + * @param value The hostname to set. + * @return This builder for chaining. + */ + public Builder setHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + hostname_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The hostname to assign to the VM.
+     * 
+ * + * string hostname = 18; + * + * @return This builder for chaining. + */ + public Builder clearHostname() { + + hostname_ = getDefaultInstance().getHostname(); + onChanged(); + return this; + } + /** + * + * + *
+     * The hostname to assign to the VM.
+     * 
+ * + * string hostname = 18; + * + * @param value The bytes for hostname to set. + * @return This builder for chaining. + */ + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + hostname_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDefaultsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDefaultsOrBuilder.java index 61f06927e9d5..543f1202112d 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDefaultsOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDefaultsOrBuilder.java @@ -565,4 +565,80 @@ java.lang.String getMetadataOrDefault( * map<string, string> metadata = 16; */ java.lang.String getMetadataOrThrow(java.lang.String key); + + /** + * + * + *
+   * Additional licenses to assign to the VM.
+   * 
+ * + * repeated string additional_licenses = 17; + * + * @return A list containing the additionalLicenses. + */ + java.util.List getAdditionalLicensesList(); + /** + * + * + *
+   * Additional licenses to assign to the VM.
+   * 
+ * + * repeated string additional_licenses = 17; + * + * @return The count of additionalLicenses. + */ + int getAdditionalLicensesCount(); + /** + * + * + *
+   * Additional licenses to assign to the VM.
+   * 
+ * + * repeated string additional_licenses = 17; + * + * @param index The index of the element to return. + * @return The additionalLicenses at the given index. + */ + java.lang.String getAdditionalLicenses(int index); + /** + * + * + *
+   * Additional licenses to assign to the VM.
+   * 
+ * + * repeated string additional_licenses = 17; + * + * @param index The index of the value to return. + * @return The bytes of the additionalLicenses at the given index. + */ + com.google.protobuf.ByteString getAdditionalLicensesBytes(int index); + + /** + * + * + *
+   * The hostname to assign to the VM.
+   * 
+ * + * string hostname = 18; + * + * @return The hostname. + */ + java.lang.String getHostname(); + /** + * + * + *
+   * The hostname to assign to the VM.
+   * 
+ * + * string hostname = 18; + * + * @return The bytes for hostname. + */ + com.google.protobuf.ByteString getHostnameBytes(); } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDetails.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDetails.java index 39e2c02fe89c..840238fdc2c4 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDetails.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDetails.java @@ -50,6 +50,8 @@ private ComputeEngineTargetDetails() { diskType_ = 0; licenseType_ = 0; bootOption_ = 0; + additionalLicenses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + hostname_ = ""; } @java.lang.Override @@ -234,6 +236,23 @@ private ComputeEngineTargetDetails( metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); break; } + case 138: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + additionalLicenses_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + additionalLicenses_.add(s); + break; + } + case 146: + { + java.lang.String s = input.readStringRequireUtf8(); + + hostname_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -256,6 +275,9 @@ private ComputeEngineTargetDetails( if (((mutable_bitField0_ & 0x00000002) != 0)) { networkInterfaces_ = java.util.Collections.unmodifiableList(networkInterfaces_); } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + additionalLicenses_ = additionalLicenses_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -1142,6 +1164,116 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) { return map.get(key); } + public static final int ADDITIONAL_LICENSES_FIELD_NUMBER = 17; + private com.google.protobuf.LazyStringList additionalLicenses_; + /** + * + * + *
+   * Additional licenses to assign to the VM.
+   * 
+ * + * repeated string additional_licenses = 17; + * + * @return A list containing the additionalLicenses. + */ + public com.google.protobuf.ProtocolStringList getAdditionalLicensesList() { + return additionalLicenses_; + } + /** + * + * + *
+   * Additional licenses to assign to the VM.
+   * 
+ * + * repeated string additional_licenses = 17; + * + * @return The count of additionalLicenses. + */ + public int getAdditionalLicensesCount() { + return additionalLicenses_.size(); + } + /** + * + * + *
+   * Additional licenses to assign to the VM.
+   * 
+ * + * repeated string additional_licenses = 17; + * + * @param index The index of the element to return. + * @return The additionalLicenses at the given index. + */ + public java.lang.String getAdditionalLicenses(int index) { + return additionalLicenses_.get(index); + } + /** + * + * + *
+   * Additional licenses to assign to the VM.
+   * 
+ * + * repeated string additional_licenses = 17; + * + * @param index The index of the value to return. + * @return The bytes of the additionalLicenses at the given index. + */ + public com.google.protobuf.ByteString getAdditionalLicensesBytes(int index) { + return additionalLicenses_.getByteString(index); + } + + public static final int HOSTNAME_FIELD_NUMBER = 18; + private volatile java.lang.Object hostname_; + /** + * + * + *
+   * The hostname to assign to the VM.
+   * 
+ * + * string hostname = 18; + * + * @return The hostname. + */ + @java.lang.Override + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } + } + /** + * + * + *
+   * The hostname to assign to the VM.
+   * 
+ * + * string hostname = 18; + * + * @return The bytes for hostname. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1211,6 +1343,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 16); + for (int i = 0; i < additionalLicenses_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, additionalLicenses_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, hostname_); + } unknownFields.writeTo(output); } @@ -1297,6 +1435,17 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, metadata__); } + { + int dataSize = 0; + for (int i = 0; i < additionalLicenses_.size(); i++) { + dataSize += computeStringSizeNoTag(additionalLicenses_.getRaw(i)); + } + size += dataSize; + size += 2 * getAdditionalLicensesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, hostname_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1335,6 +1484,8 @@ public boolean equals(final java.lang.Object obj) { if (getSecureBoot() != other.getSecureBoot()) return false; if (bootOption_ != other.bootOption_) return false; if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; + if (!getAdditionalLicensesList().equals(other.getAdditionalLicensesList())) return false; + if (!getHostname().equals(other.getHostname())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1390,6 +1541,12 @@ public int hashCode() { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetMetadata().hashCode(); } + if (getAdditionalLicensesCount() > 0) { + hash = (37 * hash) + ADDITIONAL_LICENSES_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalLicensesList().hashCode(); + } + hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostname().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1605,6 +1762,10 @@ public Builder clear() { bootOption_ = 0; internalGetMutableMetadata().clear(); + additionalLicenses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + hostname_ = ""; + return this; } @@ -1671,6 +1832,12 @@ public com.google.cloud.vmmigration.v1.ComputeEngineTargetDetails buildPartial() result.bootOption_ = bootOption_; result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); + if (((bitField0_ & 0x00000010) != 0)) { + additionalLicenses_ = additionalLicenses_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.additionalLicenses_ = additionalLicenses_; + result.hostname_ = hostname_; onBuilt(); return result; } @@ -1802,6 +1969,20 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.ComputeEngineTargetDeta setBootOptionValue(other.getBootOptionValue()); } internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + if (!other.additionalLicenses_.isEmpty()) { + if (additionalLicenses_.isEmpty()) { + additionalLicenses_ = other.additionalLicenses_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.addAll(other.additionalLicenses_); + } + onChanged(); + } + if (!other.getHostname().isEmpty()) { + hostname_ = other.hostname_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -4023,6 +4204,280 @@ public Builder putAllMetadata(java.util.Map return this; } + private com.google.protobuf.LazyStringList additionalLicenses_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAdditionalLicensesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + additionalLicenses_ = new com.google.protobuf.LazyStringArrayList(additionalLicenses_); + bitField0_ |= 0x00000010; + } + } + /** + * + * + *
+     * Additional licenses to assign to the VM.
+     * 
+ * + * repeated string additional_licenses = 17; + * + * @return A list containing the additionalLicenses. + */ + public com.google.protobuf.ProtocolStringList getAdditionalLicensesList() { + return additionalLicenses_.getUnmodifiableView(); + } + /** + * + * + *
+     * Additional licenses to assign to the VM.
+     * 
+ * + * repeated string additional_licenses = 17; + * + * @return The count of additionalLicenses. + */ + public int getAdditionalLicensesCount() { + return additionalLicenses_.size(); + } + /** + * + * + *
+     * Additional licenses to assign to the VM.
+     * 
+ * + * repeated string additional_licenses = 17; + * + * @param index The index of the element to return. + * @return The additionalLicenses at the given index. + */ + public java.lang.String getAdditionalLicenses(int index) { + return additionalLicenses_.get(index); + } + /** + * + * + *
+     * Additional licenses to assign to the VM.
+     * 
+ * + * repeated string additional_licenses = 17; + * + * @param index The index of the value to return. + * @return The bytes of the additionalLicenses at the given index. + */ + public com.google.protobuf.ByteString getAdditionalLicensesBytes(int index) { + return additionalLicenses_.getByteString(index); + } + /** + * + * + *
+     * Additional licenses to assign to the VM.
+     * 
+ * + * repeated string additional_licenses = 17; + * + * @param index The index to set the value at. + * @param value The additionalLicenses to set. + * @return This builder for chaining. + */ + public Builder setAdditionalLicenses(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Additional licenses to assign to the VM.
+     * 
+ * + * repeated string additional_licenses = 17; + * + * @param value The additionalLicenses to add. + * @return This builder for chaining. + */ + public Builder addAdditionalLicenses(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Additional licenses to assign to the VM.
+     * 
+ * + * repeated string additional_licenses = 17; + * + * @param values The additionalLicenses to add. + * @return This builder for chaining. + */ + public Builder addAllAdditionalLicenses(java.lang.Iterable values) { + ensureAdditionalLicensesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalLicenses_); + onChanged(); + return this; + } + /** + * + * + *
+     * Additional licenses to assign to the VM.
+     * 
+ * + * repeated string additional_licenses = 17; + * + * @return This builder for chaining. + */ + public Builder clearAdditionalLicenses() { + additionalLicenses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Additional licenses to assign to the VM.
+     * 
+ * + * repeated string additional_licenses = 17; + * + * @param value The bytes of the additionalLicenses to add. + * @return This builder for chaining. + */ + public Builder addAdditionalLicensesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.add(value); + onChanged(); + return this; + } + + private java.lang.Object hostname_ = ""; + /** + * + * + *
+     * The hostname to assign to the VM.
+     * 
+ * + * string hostname = 18; + * + * @return The hostname. + */ + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The hostname to assign to the VM.
+     * 
+ * + * string hostname = 18; + * + * @return The bytes for hostname. + */ + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The hostname to assign to the VM.
+     * 
+ * + * string hostname = 18; + * + * @param value The hostname to set. + * @return This builder for chaining. + */ + public Builder setHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + hostname_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The hostname to assign to the VM.
+     * 
+ * + * string hostname = 18; + * + * @return This builder for chaining. + */ + public Builder clearHostname() { + + hostname_ = getDefaultInstance().getHostname(); + onChanged(); + return this; + } + /** + * + * + *
+     * The hostname to assign to the VM.
+     * 
+ * + * string hostname = 18; + * + * @param value The bytes for hostname to set. + * @return This builder for chaining. + */ + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + hostname_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDetailsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDetailsOrBuilder.java index 7a9f0b5bc622..cea9dae99113 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDetailsOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDetailsOrBuilder.java @@ -553,4 +553,80 @@ java.lang.String getMetadataOrDefault( * map<string, string> metadata = 16; */ java.lang.String getMetadataOrThrow(java.lang.String key); + + /** + * + * + *
+   * Additional licenses to assign to the VM.
+   * 
+ * + * repeated string additional_licenses = 17; + * + * @return A list containing the additionalLicenses. + */ + java.util.List getAdditionalLicensesList(); + /** + * + * + *
+   * Additional licenses to assign to the VM.
+   * 
+ * + * repeated string additional_licenses = 17; + * + * @return The count of additionalLicenses. + */ + int getAdditionalLicensesCount(); + /** + * + * + *
+   * Additional licenses to assign to the VM.
+   * 
+ * + * repeated string additional_licenses = 17; + * + * @param index The index of the element to return. + * @return The additionalLicenses at the given index. + */ + java.lang.String getAdditionalLicenses(int index); + /** + * + * + *
+   * Additional licenses to assign to the VM.
+   * 
+ * + * repeated string additional_licenses = 17; + * + * @param index The index of the value to return. + * @return The bytes of the additionalLicenses at the given index. + */ + com.google.protobuf.ByteString getAdditionalLicensesBytes(int index); + + /** + * + * + *
+   * The hostname to assign to the VM.
+   * 
+ * + * string hostname = 18; + * + * @return The hostname. + */ + java.lang.String getHostname(); + /** + * + * + *
+   * The hostname to assign to the VM.
+   * 
+ * + * string hostname = 18; + * + * @return The bytes for hostname. + */ + com.google.protobuf.ByteString getHostnameBytes(); } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateUtilizationReportRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateUtilizationReportRequest.java index 4012b8b6db9e..42c2ee0dee35 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateUtilizationReportRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateUtilizationReportRequest.java @@ -261,8 +261,8 @@ public com.google.cloud.vmmigration.v1.UtilizationReport getUtilizationReport() * * *
-   * Required. The ID to use for the report, which will become the final component of
-   * the reports's resource name.
+   * Required. The ID to use for the report, which will become the final
+   * component of the reports's resource name.
    * This value maximum length is 63 characters, and valid characters
    * are /[a-z][0-9]-/. It must start with an english letter and must not
    * end with a hyphen.
@@ -288,8 +288,8 @@ public java.lang.String getUtilizationReportId() {
    *
    *
    * 
-   * Required. The ID to use for the report, which will become the final component of
-   * the reports's resource name.
+   * Required. The ID to use for the report, which will become the final
+   * component of the reports's resource name.
    * This value maximum length is 63 characters, and valid characters
    * are /[a-z][0-9]-/. It must start with an english letter and must not
    * end with a hyphen.
@@ -1089,8 +1089,8 @@ public com.google.cloud.vmmigration.v1.UtilizationReport.Builder getUtilizationR
      *
      *
      * 
-     * Required. The ID to use for the report, which will become the final component of
-     * the reports's resource name.
+     * Required. The ID to use for the report, which will become the final
+     * component of the reports's resource name.
      * This value maximum length is 63 characters, and valid characters
      * are /[a-z][0-9]-/. It must start with an english letter and must not
      * end with a hyphen.
@@ -1115,8 +1115,8 @@ public java.lang.String getUtilizationReportId() {
      *
      *
      * 
-     * Required. The ID to use for the report, which will become the final component of
-     * the reports's resource name.
+     * Required. The ID to use for the report, which will become the final
+     * component of the reports's resource name.
      * This value maximum length is 63 characters, and valid characters
      * are /[a-z][0-9]-/. It must start with an english letter and must not
      * end with a hyphen.
@@ -1141,8 +1141,8 @@ public com.google.protobuf.ByteString getUtilizationReportIdBytes() {
      *
      *
      * 
-     * Required. The ID to use for the report, which will become the final component of
-     * the reports's resource name.
+     * Required. The ID to use for the report, which will become the final
+     * component of the reports's resource name.
      * This value maximum length is 63 characters, and valid characters
      * are /[a-z][0-9]-/. It must start with an english letter and must not
      * end with a hyphen.
@@ -1166,8 +1166,8 @@ public Builder setUtilizationReportId(java.lang.String value) {
      *
      *
      * 
-     * Required. The ID to use for the report, which will become the final component of
-     * the reports's resource name.
+     * Required. The ID to use for the report, which will become the final
+     * component of the reports's resource name.
      * This value maximum length is 63 characters, and valid characters
      * are /[a-z][0-9]-/. It must start with an english letter and must not
      * end with a hyphen.
@@ -1187,8 +1187,8 @@ public Builder clearUtilizationReportId() {
      *
      *
      * 
-     * Required. The ID to use for the report, which will become the final component of
-     * the reports's resource name.
+     * Required. The ID to use for the report, which will become the final
+     * component of the reports's resource name.
      * This value maximum length is 63 characters, and valid characters
      * are /[a-z][0-9]-/. It must start with an english letter and must not
      * end with a hyphen.
diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateUtilizationReportRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateUtilizationReportRequestOrBuilder.java
index 1a1b5c46972a..7a40c2e937d9 100644
--- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateUtilizationReportRequestOrBuilder.java
+++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateUtilizationReportRequestOrBuilder.java
@@ -97,8 +97,8 @@ public interface CreateUtilizationReportRequestOrBuilder
    *
    *
    * 
-   * Required. The ID to use for the report, which will become the final component of
-   * the reports's resource name.
+   * Required. The ID to use for the report, which will become the final
+   * component of the reports's resource name.
    * This value maximum length is 63 characters, and valid characters
    * are /[a-z][0-9]-/. It must start with an english letter and must not
    * end with a hyphen.
@@ -113,8 +113,8 @@ public interface CreateUtilizationReportRequestOrBuilder
    *
    *
    * 
-   * Required. The ID to use for the report, which will become the final component of
-   * the reports's resource name.
+   * Required. The ID to use for the report, which will become the final
+   * component of the reports's resource name.
    * This value maximum length is 63 characters, and valid characters
    * are /[a-z][0-9]-/. It must start with an english letter and must not
    * end with a hyphen.
diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverJob.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverJob.java
index 2f0a9aaecf44..7d5157948153 100644
--- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverJob.java
+++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverJob.java
@@ -162,6 +162,21 @@ private CutoverJob(
                 targetVmDetails_ = subBuilder.buildPartial();
               }
               targetVmDetailsCase_ = 14;
+              break;
+            }
+          case 130:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (endTime_ != null) {
+                subBuilder = endTime_.toBuilder();
+              }
+              endTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(endTime_);
+                endTime_ = subBuilder.buildPartial();
+              }
+
               break;
             }
           default:
@@ -578,8 +593,8 @@ public boolean hasComputeEngineTargetDetails() {
    *
    *
    * 
-   * Output only. The time the cutover job was created (as an API call, not when it was
-   * actually created in the target).
+   * Output only. The time the cutover job was created (as an API call, not when
+   * it was actually created in the target).
    * 
* * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -595,8 +610,8 @@ public boolean hasCreateTime() { * * *
-   * Output only. The time the cutover job was created (as an API call, not when it was
-   * actually created in the target).
+   * Output only. The time the cutover job was created (as an API call, not when
+   * it was actually created in the target).
    * 
* * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -612,8 +627,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-   * Output only. The time the cutover job was created (as an API call, not when it was
-   * actually created in the target).
+   * Output only. The time the cutover job was created (as an API call, not when
+   * it was actually created in the target).
    * 
* * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -624,6 +639,55 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); } + public static final int END_TIME_FIELD_NUMBER = 16; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * Output only. The time the cutover job had finished.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * Output only. The time the cutover job had finished.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * Output only. The time the cutover job had finished.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** @@ -786,7 +850,8 @@ public int getProgressPercent() { * * *
-   * Output only. Provides details for the errors that led to the Cutover Job's state.
+   * Output only. Provides details for the errors that led to the Cutover Job's
+   * state.
    * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -801,7 +866,8 @@ public boolean hasError() { * * *
-   * Output only. Provides details for the errors that led to the Cutover Job's state.
+   * Output only. Provides details for the errors that led to the Cutover Job's
+   * state.
    * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -816,7 +882,8 @@ public com.google.rpc.Status getError() { * * *
-   * Output only. Provides details for the errors that led to the Cutover Job's state.
+   * Output only. Provides details for the errors that led to the Cutover Job's
+   * state.
    * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -832,7 +899,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * * *
-   * Output only. A message providing possible extra details about the current state.
+   * Output only. A message providing possible extra details about the current
+   * state.
    * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -855,7 +923,8 @@ public java.lang.String getStateMessage() { * * *
-   * Output only. A message providing possible extra details about the current state.
+   * Output only. A message providing possible extra details about the current
+   * state.
    * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -914,6 +983,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 14, (com.google.cloud.vmmigration.v1.ComputeEngineTargetDetails) targetVmDetails_); } + if (endTime_ != null) { + output.writeMessage(16, getEndTime()); + } unknownFields.writeTo(output); } @@ -949,6 +1021,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 14, (com.google.cloud.vmmigration.v1.ComputeEngineTargetDetails) targetVmDetails_); } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getEndTime()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -969,6 +1044,10 @@ public boolean equals(final java.lang.Object obj) { if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } if (!getName().equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasStateTime() != other.hasStateTime()) return false; @@ -1005,6 +1084,10 @@ public int hashCode() { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; @@ -1182,6 +1265,12 @@ public Builder clear() { createTime_ = null; createTimeBuilder_ = null; } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } name_ = ""; state_ = 0; @@ -1243,6 +1332,11 @@ public com.google.cloud.vmmigration.v1.CutoverJob buildPartial() { } else { result.createTime_ = createTimeBuilder_.build(); } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } result.name_ = name_; result.state_ = state_; if (stateTimeBuilder_ == null) { @@ -1310,6 +1404,9 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.CutoverJob other) { if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1630,8 +1727,8 @@ public Builder clearComputeEngineTargetDetails() { * * *
-     * Output only. The time the cutover job was created (as an API call, not when it was
-     * actually created in the target).
+     * Output only. The time the cutover job was created (as an API call, not when
+     * it was actually created in the target).
      * 
* * @@ -1647,8 +1744,8 @@ public boolean hasCreateTime() { * * *
-     * Output only. The time the cutover job was created (as an API call, not when it was
-     * actually created in the target).
+     * Output only. The time the cutover job was created (as an API call, not when
+     * it was actually created in the target).
      * 
* * @@ -1670,8 +1767,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-     * Output only. The time the cutover job was created (as an API call, not when it was
-     * actually created in the target).
+     * Output only. The time the cutover job was created (as an API call, not when
+     * it was actually created in the target).
      * 
* * @@ -1695,8 +1792,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The time the cutover job was created (as an API call, not when it was
-     * actually created in the target).
+     * Output only. The time the cutover job was created (as an API call, not when
+     * it was actually created in the target).
      * 
* * @@ -1717,8 +1814,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. The time the cutover job was created (as an API call, not when it was
-     * actually created in the target).
+     * Output only. The time the cutover job was created (as an API call, not when
+     * it was actually created in the target).
      * 
* * @@ -1744,8 +1841,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The time the cutover job was created (as an API call, not when it was
-     * actually created in the target).
+     * Output only. The time the cutover job was created (as an API call, not when
+     * it was actually created in the target).
      * 
* * @@ -1767,8 +1864,8 @@ public Builder clearCreateTime() { * * *
-     * Output only. The time the cutover job was created (as an API call, not when it was
-     * actually created in the target).
+     * Output only. The time the cutover job was created (as an API call, not when
+     * it was actually created in the target).
      * 
* * @@ -1784,8 +1881,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * * *
-     * Output only. The time the cutover job was created (as an API call, not when it was
-     * actually created in the target).
+     * Output only. The time the cutover job was created (as an API call, not when
+     * it was actually created in the target).
      * 
* * @@ -1805,8 +1902,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * Output only. The time the cutover job was created (as an API call, not when it was
-     * actually created in the target).
+     * Output only. The time the cutover job was created (as an API call, not when
+     * it was actually created in the target).
      * 
* * @@ -1830,6 +1927,194 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTimeBuilder_; } + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * Output only. The time the cutover job had finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * Output only. The time the cutover job had finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The time the cutover job had finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time the cutover job had finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The time the cutover job had finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time the cutover job had finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The time the cutover job had finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time the cutover job had finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * Output only. The time the cutover job had finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + private java.lang.Object name_ = ""; /** * @@ -2287,7 +2572,8 @@ public Builder clearProgressPercent() { * * *
-     * Output only. Provides details for the errors that led to the Cutover Job's state.
+     * Output only. Provides details for the errors that led to the Cutover Job's
+     * state.
      * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2301,7 +2587,8 @@ public boolean hasError() { * * *
-     * Output only. Provides details for the errors that led to the Cutover Job's state.
+     * Output only. Provides details for the errors that led to the Cutover Job's
+     * state.
      * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2319,7 +2606,8 @@ public com.google.rpc.Status getError() { * * *
-     * Output only. Provides details for the errors that led to the Cutover Job's state.
+     * Output only. Provides details for the errors that led to the Cutover Job's
+     * state.
      * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2341,7 +2629,8 @@ public Builder setError(com.google.rpc.Status value) { * * *
-     * Output only. Provides details for the errors that led to the Cutover Job's state.
+     * Output only. Provides details for the errors that led to the Cutover Job's
+     * state.
      * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2360,7 +2649,8 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { * * *
-     * Output only. Provides details for the errors that led to the Cutover Job's state.
+     * Output only. Provides details for the errors that led to the Cutover Job's
+     * state.
      * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2383,7 +2673,8 @@ public Builder mergeError(com.google.rpc.Status value) { * * *
-     * Output only. Provides details for the errors that led to the Cutover Job's state.
+     * Output only. Provides details for the errors that led to the Cutover Job's
+     * state.
      * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2403,7 +2694,8 @@ public Builder clearError() { * * *
-     * Output only. Provides details for the errors that led to the Cutover Job's state.
+     * Output only. Provides details for the errors that led to the Cutover Job's
+     * state.
      * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2417,7 +2709,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() { * * *
-     * Output only. Provides details for the errors that led to the Cutover Job's state.
+     * Output only. Provides details for the errors that led to the Cutover Job's
+     * state.
      * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2433,7 +2726,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * * *
-     * Output only. Provides details for the errors that led to the Cutover Job's state.
+     * Output only. Provides details for the errors that led to the Cutover Job's
+     * state.
      * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2457,7 +2751,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * * *
-     * Output only. A message providing possible extra details about the current state.
+     * Output only. A message providing possible extra details about the current
+     * state.
      * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2479,7 +2774,8 @@ public java.lang.String getStateMessage() { * * *
-     * Output only. A message providing possible extra details about the current state.
+     * Output only. A message providing possible extra details about the current
+     * state.
      * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2501,7 +2797,8 @@ public com.google.protobuf.ByteString getStateMessageBytes() { * * *
-     * Output only. A message providing possible extra details about the current state.
+     * Output only. A message providing possible extra details about the current
+     * state.
      * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2522,7 +2819,8 @@ public Builder setStateMessage(java.lang.String value) { * * *
-     * Output only. A message providing possible extra details about the current state.
+     * Output only. A message providing possible extra details about the current
+     * state.
      * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2539,7 +2837,8 @@ public Builder clearStateMessage() { * * *
-     * Output only. A message providing possible extra details about the current state.
+     * Output only. A message providing possible extra details about the current
+     * state.
      * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverJobOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverJobOrBuilder.java index 43d6ec3ce988..3624aa8ecfd9 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverJobOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverJobOrBuilder.java @@ -69,8 +69,8 @@ public interface CutoverJobOrBuilder * * *
-   * Output only. The time the cutover job was created (as an API call, not when it was
-   * actually created in the target).
+   * Output only. The time the cutover job was created (as an API call, not when
+   * it was actually created in the target).
    * 
* * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -83,8 +83,8 @@ public interface CutoverJobOrBuilder * * *
-   * Output only. The time the cutover job was created (as an API call, not when it was
-   * actually created in the target).
+   * Output only. The time the cutover job was created (as an API call, not when
+   * it was actually created in the target).
    * 
* * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -97,8 +97,8 @@ public interface CutoverJobOrBuilder * * *
-   * Output only. The time the cutover job was created (as an API call, not when it was
-   * actually created in the target).
+   * Output only. The time the cutover job was created (as an API call, not when
+   * it was actually created in the target).
    * 
* * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -106,6 +106,44 @@ public interface CutoverJobOrBuilder */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + /** + * + * + *
+   * Output only. The time the cutover job had finished.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * Output only. The time the cutover job had finished.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * Output only. The time the cutover job had finished.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + /** * * @@ -215,7 +253,8 @@ public interface CutoverJobOrBuilder * * *
-   * Output only. Provides details for the errors that led to the Cutover Job's state.
+   * Output only. Provides details for the errors that led to the Cutover Job's
+   * state.
    * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -227,7 +266,8 @@ public interface CutoverJobOrBuilder * * *
-   * Output only. Provides details for the errors that led to the Cutover Job's state.
+   * Output only. Provides details for the errors that led to the Cutover Job's
+   * state.
    * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -239,7 +279,8 @@ public interface CutoverJobOrBuilder * * *
-   * Output only. Provides details for the errors that led to the Cutover Job's state.
+   * Output only. Provides details for the errors that led to the Cutover Job's
+   * state.
    * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -250,7 +291,8 @@ public interface CutoverJobOrBuilder * * *
-   * Output only. A message providing possible extra details about the current state.
+   * Output only. A message providing possible extra details about the current
+   * state.
    * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -262,7 +304,8 @@ public interface CutoverJobOrBuilder * * *
-   * Output only. A message providing possible extra details about the current state.
+   * Output only. A message providing possible extra details about the current
+   * state.
    * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DatacenterConnector.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DatacenterConnector.java index 26b15605322f..cb1b10c09407 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DatacenterConnector.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DatacenterConnector.java @@ -46,6 +46,8 @@ private DatacenterConnector() { version_ = ""; bucket_ = ""; state_ = 0; + applianceInfrastructureVersion_ = ""; + applianceSoftwareVersion_ = ""; } @java.lang.Override @@ -176,6 +178,52 @@ private DatacenterConnector( java.lang.String s = input.readStringRequireUtf8(); registrationId_ = s; + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + + applianceInfrastructureVersion_ = s; + break; + } + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + + applianceSoftwareVersion_ = s; + break; + } + case 122: + { + com.google.cloud.vmmigration.v1.AvailableUpdates.Builder subBuilder = null; + if (availableVersions_ != null) { + subBuilder = availableVersions_.toBuilder(); + } + availableVersions_ = + input.readMessage( + com.google.cloud.vmmigration.v1.AvailableUpdates.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(availableVersions_); + availableVersions_ = subBuilder.buildPartial(); + } + + break; + } + case 130: + { + com.google.cloud.vmmigration.v1.UpgradeStatus.Builder subBuilder = null; + if (upgradeStatus_ != null) { + subBuilder = upgradeStatus_.toBuilder(); + } + upgradeStatus_ = + input.readMessage( + com.google.cloud.vmmigration.v1.UpgradeStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(upgradeStatus_); + upgradeStatus_ = subBuilder.buildPartial(); + } + break; } default: @@ -429,8 +477,8 @@ private State(int value) { * * *
-   * Output only. The time the connector was created (as an API call, not when it was
-   * actually installed).
+   * Output only. The time the connector was created (as an API call, not when
+   * it was actually installed).
    * 
* * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -446,8 +494,8 @@ public boolean hasCreateTime() { * * *
-   * Output only. The time the connector was created (as an API call, not when it was
-   * actually installed).
+   * Output only. The time the connector was created (as an API call, not when
+   * it was actually installed).
    * 
* * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -463,8 +511,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-   * Output only. The time the connector was created (as an API call, not when it was
-   * actually installed).
+   * Output only. The time the connector was created (as an API call, not when
+   * it was actually installed).
    * 
* * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -579,9 +627,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Immutable. A unique key for this connector. This key is internal to the OVA connector
-   * and is supplied with its creation during the registration process and can
-   * not be modified.
+   * Immutable. A unique key for this connector. This key is internal to the OVA
+   * connector and is supplied with its creation during the registration process
+   * and can not be modified.
    * 
* * string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE]; @@ -604,9 +652,9 @@ public java.lang.String getRegistrationId() { * * *
-   * Immutable. A unique key for this connector. This key is internal to the OVA connector
-   * and is supplied with its creation during the registration process and can
-   * not be modified.
+   * Immutable. A unique key for this connector. This key is internal to the OVA
+   * connector and is supplied with its creation during the registration process
+   * and can not be modified.
    * 
* * string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE]; @@ -734,7 +782,8 @@ public com.google.protobuf.ByteString getVersionBytes() { * * *
-   * Output only. The communication channel between the datacenter connector and GCP.
+   * Output only. The communication channel between the datacenter connector and
+   * GCP.
    * 
* * string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -757,7 +806,8 @@ public java.lang.String getBucket() { * * *
-   * Output only. The communication channel between the datacenter connector and GCP.
+   * Output only. The communication channel between the datacenter connector and
+   * GCP.
    * 
* * string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -783,7 +833,8 @@ public com.google.protobuf.ByteString getBucketBytes() { * * *
-   * Output only. State of the DatacenterConnector, as determined by the health checks.
+   * Output only. State of the DatacenterConnector, as determined by the health
+   * checks.
    * 
* * @@ -800,7 +851,8 @@ public int getStateValue() { * * *
-   * Output only. State of the DatacenterConnector, as determined by the health checks.
+   * Output only. State of the DatacenterConnector, as determined by the health
+   * checks.
    * 
* * @@ -874,8 +926,8 @@ public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { * * *
-   * Output only. Provides details on the state of the Datacenter Connector in case of an
-   * error.
+   * Output only. Provides details on the state of the Datacenter Connector in
+   * case of an error.
    * 
* * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -890,8 +942,8 @@ public boolean hasError() { * * *
-   * Output only. Provides details on the state of the Datacenter Connector in case of an
-   * error.
+   * Output only. Provides details on the state of the Datacenter Connector in
+   * case of an error.
    * 
* * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -906,8 +958,8 @@ public com.google.rpc.Status getError() { * * *
-   * Output only. Provides details on the state of the Datacenter Connector in case of an
-   * error.
+   * Output only. Provides details on the state of the Datacenter Connector in
+   * case of an error.
    * 
* * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -917,6 +969,226 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { return getError(); } + public static final int APPLIANCE_INFRASTRUCTURE_VERSION_FIELD_NUMBER = 13; + private volatile java.lang.Object applianceInfrastructureVersion_; + /** + * + * + *
+   * Output only. Appliance OVA version.
+   * This is the OVA which is manually installed by the user and contains the
+   * infrastructure for the automatically updatable components on the appliance.
+   * 
+ * + * + * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The applianceInfrastructureVersion. + */ + @java.lang.Override + public java.lang.String getApplianceInfrastructureVersion() { + java.lang.Object ref = applianceInfrastructureVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applianceInfrastructureVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Appliance OVA version.
+   * This is the OVA which is manually installed by the user and contains the
+   * infrastructure for the automatically updatable components on the appliance.
+   * 
+ * + * + * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for applianceInfrastructureVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApplianceInfrastructureVersionBytes() { + java.lang.Object ref = applianceInfrastructureVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applianceInfrastructureVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLIANCE_SOFTWARE_VERSION_FIELD_NUMBER = 14; + private volatile java.lang.Object applianceSoftwareVersion_; + /** + * + * + *
+   * Output only. Appliance last installed update bundle version.
+   * This is the version of the automatically updatable components on the
+   * appliance.
+   * 
+ * + * string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The applianceSoftwareVersion. + */ + @java.lang.Override + public java.lang.String getApplianceSoftwareVersion() { + java.lang.Object ref = applianceSoftwareVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applianceSoftwareVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Appliance last installed update bundle version.
+   * This is the version of the automatically updatable components on the
+   * appliance.
+   * 
+ * + * string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for applianceSoftwareVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApplianceSoftwareVersionBytes() { + java.lang.Object ref = applianceSoftwareVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applianceSoftwareVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AVAILABLE_VERSIONS_FIELD_NUMBER = 15; + private com.google.cloud.vmmigration.v1.AvailableUpdates availableVersions_; + /** + * + * + *
+   * Output only. The available versions for updating this appliance.
+   * 
+ * + * + * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the availableVersions field is set. + */ + @java.lang.Override + public boolean hasAvailableVersions() { + return availableVersions_ != null; + } + /** + * + * + *
+   * Output only. The available versions for updating this appliance.
+   * 
+ * + * + * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The availableVersions. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AvailableUpdates getAvailableVersions() { + return availableVersions_ == null + ? com.google.cloud.vmmigration.v1.AvailableUpdates.getDefaultInstance() + : availableVersions_; + } + /** + * + * + *
+   * Output only. The available versions for updating this appliance.
+   * 
+ * + * + * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AvailableUpdatesOrBuilder getAvailableVersionsOrBuilder() { + return getAvailableVersions(); + } + + public static final int UPGRADE_STATUS_FIELD_NUMBER = 16; + private com.google.cloud.vmmigration.v1.UpgradeStatus upgradeStatus_; + /** + * + * + *
+   * Output only. The status of the current / last upgradeAppliance operation.
+   * 
+ * + * + * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the upgradeStatus field is set. + */ + @java.lang.Override + public boolean hasUpgradeStatus() { + return upgradeStatus_ != null; + } + /** + * + * + *
+   * Output only. The status of the current / last upgradeAppliance operation.
+   * 
+ * + * + * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The upgradeStatus. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.UpgradeStatus getUpgradeStatus() { + return upgradeStatus_ == null + ? com.google.cloud.vmmigration.v1.UpgradeStatus.getDefaultInstance() + : upgradeStatus_; + } + /** + * + * + *
+   * Output only. The status of the current / last upgradeAppliance operation.
+   * 
+ * + * + * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.UpgradeStatusOrBuilder getUpgradeStatusOrBuilder() { + return getUpgradeStatus(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -963,6 +1235,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registrationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, registrationId_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(applianceInfrastructureVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 13, applianceInfrastructureVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(applianceSoftwareVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, applianceSoftwareVersion_); + } + if (availableVersions_ != null) { + output.writeMessage(15, getAvailableVersions()); + } + if (upgradeStatus_ != null) { + output.writeMessage(16, getUpgradeStatus()); + } unknownFields.writeTo(output); } @@ -1004,6 +1289,21 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registrationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, registrationId_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(applianceInfrastructureVersion_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 13, applianceInfrastructureVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(applianceSoftwareVersion_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(14, applianceSoftwareVersion_); + } + if (availableVersions_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getAvailableVersions()); + } + if (upgradeStatus_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getUpgradeStatus()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1042,6 +1342,17 @@ public boolean equals(final java.lang.Object obj) { if (hasError()) { if (!getError().equals(other.getError())) return false; } + if (!getApplianceInfrastructureVersion().equals(other.getApplianceInfrastructureVersion())) + return false; + if (!getApplianceSoftwareVersion().equals(other.getApplianceSoftwareVersion())) return false; + if (hasAvailableVersions() != other.hasAvailableVersions()) return false; + if (hasAvailableVersions()) { + if (!getAvailableVersions().equals(other.getAvailableVersions())) return false; + } + if (hasUpgradeStatus() != other.hasUpgradeStatus()) return false; + if (hasUpgradeStatus()) { + if (!getUpgradeStatus().equals(other.getUpgradeStatus())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1081,6 +1392,18 @@ public int hashCode() { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } + hash = (37 * hash) + APPLIANCE_INFRASTRUCTURE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getApplianceInfrastructureVersion().hashCode(); + hash = (37 * hash) + APPLIANCE_SOFTWARE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getApplianceSoftwareVersion().hashCode(); + if (hasAvailableVersions()) { + hash = (37 * hash) + AVAILABLE_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getAvailableVersions().hashCode(); + } + if (hasUpgradeStatus()) { + hash = (37 * hash) + UPGRADE_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getUpgradeStatus().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1264,6 +1587,22 @@ public Builder clear() { error_ = null; errorBuilder_ = null; } + applianceInfrastructureVersion_ = ""; + + applianceSoftwareVersion_ = ""; + + if (availableVersionsBuilder_ == null) { + availableVersions_ = null; + } else { + availableVersions_ = null; + availableVersionsBuilder_ = null; + } + if (upgradeStatusBuilder_ == null) { + upgradeStatus_ = null; + } else { + upgradeStatus_ = null; + upgradeStatusBuilder_ = null; + } return this; } @@ -1317,6 +1656,18 @@ public com.google.cloud.vmmigration.v1.DatacenterConnector buildPartial() { } else { result.error_ = errorBuilder_.build(); } + result.applianceInfrastructureVersion_ = applianceInfrastructureVersion_; + result.applianceSoftwareVersion_ = applianceSoftwareVersion_; + if (availableVersionsBuilder_ == null) { + result.availableVersions_ = availableVersions_; + } else { + result.availableVersions_ = availableVersionsBuilder_.build(); + } + if (upgradeStatusBuilder_ == null) { + result.upgradeStatus_ = upgradeStatus_; + } else { + result.upgradeStatus_ = upgradeStatusBuilder_.build(); + } onBuilt(); return result; } @@ -1402,6 +1753,20 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.DatacenterConnector oth if (other.hasError()) { mergeError(other.getError()); } + if (!other.getApplianceInfrastructureVersion().isEmpty()) { + applianceInfrastructureVersion_ = other.applianceInfrastructureVersion_; + onChanged(); + } + if (!other.getApplianceSoftwareVersion().isEmpty()) { + applianceSoftwareVersion_ = other.applianceSoftwareVersion_; + onChanged(); + } + if (other.hasAvailableVersions()) { + mergeAvailableVersions(other.getAvailableVersions()); + } + if (other.hasUpgradeStatus()) { + mergeUpgradeStatus(other.getUpgradeStatus()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1442,8 +1807,8 @@ public Builder mergeFrom( * * *
-     * Output only. The time the connector was created (as an API call, not when it was
-     * actually installed).
+     * Output only. The time the connector was created (as an API call, not when
+     * it was actually installed).
      * 
* * @@ -1459,8 +1824,8 @@ public boolean hasCreateTime() { * * *
-     * Output only. The time the connector was created (as an API call, not when it was
-     * actually installed).
+     * Output only. The time the connector was created (as an API call, not when
+     * it was actually installed).
      * 
* * @@ -1482,8 +1847,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-     * Output only. The time the connector was created (as an API call, not when it was
-     * actually installed).
+     * Output only. The time the connector was created (as an API call, not when
+     * it was actually installed).
      * 
* * @@ -1507,8 +1872,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The time the connector was created (as an API call, not when it was
-     * actually installed).
+     * Output only. The time the connector was created (as an API call, not when
+     * it was actually installed).
      * 
* * @@ -1529,8 +1894,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. The time the connector was created (as an API call, not when it was
-     * actually installed).
+     * Output only. The time the connector was created (as an API call, not when
+     * it was actually installed).
      * 
* * @@ -1556,8 +1921,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The time the connector was created (as an API call, not when it was
-     * actually installed).
+     * Output only. The time the connector was created (as an API call, not when
+     * it was actually installed).
      * 
* * @@ -1579,8 +1944,8 @@ public Builder clearCreateTime() { * * *
-     * Output only. The time the connector was created (as an API call, not when it was
-     * actually installed).
+     * Output only. The time the connector was created (as an API call, not when
+     * it was actually installed).
      * 
* * @@ -1596,8 +1961,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * * *
-     * Output only. The time the connector was created (as an API call, not when it was
-     * actually installed).
+     * Output only. The time the connector was created (as an API call, not when
+     * it was actually installed).
      * 
* * @@ -1617,8 +1982,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * Output only. The time the connector was created (as an API call, not when it was
-     * actually installed).
+     * Output only. The time the connector was created (as an API call, not when
+     * it was actually installed).
      * 
* * @@ -1954,9 +2319,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Immutable. A unique key for this connector. This key is internal to the OVA connector
-     * and is supplied with its creation during the registration process and can
-     * not be modified.
+     * Immutable. A unique key for this connector. This key is internal to the OVA
+     * connector and is supplied with its creation during the registration process
+     * and can not be modified.
      * 
* * string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1978,9 +2343,9 @@ public java.lang.String getRegistrationId() { * * *
-     * Immutable. A unique key for this connector. This key is internal to the OVA connector
-     * and is supplied with its creation during the registration process and can
-     * not be modified.
+     * Immutable. A unique key for this connector. This key is internal to the OVA
+     * connector and is supplied with its creation during the registration process
+     * and can not be modified.
      * 
* * string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2002,9 +2367,9 @@ public com.google.protobuf.ByteString getRegistrationIdBytes() { * * *
-     * Immutable. A unique key for this connector. This key is internal to the OVA connector
-     * and is supplied with its creation during the registration process and can
-     * not be modified.
+     * Immutable. A unique key for this connector. This key is internal to the OVA
+     * connector and is supplied with its creation during the registration process
+     * and can not be modified.
      * 
* * string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2025,9 +2390,9 @@ public Builder setRegistrationId(java.lang.String value) { * * *
-     * Immutable. A unique key for this connector. This key is internal to the OVA connector
-     * and is supplied with its creation during the registration process and can
-     * not be modified.
+     * Immutable. A unique key for this connector. This key is internal to the OVA
+     * connector and is supplied with its creation during the registration process
+     * and can not be modified.
      * 
* * string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2044,9 +2409,9 @@ public Builder clearRegistrationId() { * * *
-     * Immutable. A unique key for this connector. This key is internal to the OVA connector
-     * and is supplied with its creation during the registration process and can
-     * not be modified.
+     * Immutable. A unique key for this connector. This key is internal to the OVA
+     * connector and is supplied with its creation during the registration process
+     * and can not be modified.
      * 
* * string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2292,7 +2657,8 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. The communication channel between the datacenter connector and GCP.
+     * Output only. The communication channel between the datacenter connector and
+     * GCP.
      * 
* * string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2314,7 +2680,8 @@ public java.lang.String getBucket() { * * *
-     * Output only. The communication channel between the datacenter connector and GCP.
+     * Output only. The communication channel between the datacenter connector and
+     * GCP.
      * 
* * string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2336,7 +2703,8 @@ public com.google.protobuf.ByteString getBucketBytes() { * * *
-     * Output only. The communication channel between the datacenter connector and GCP.
+     * Output only. The communication channel between the datacenter connector and
+     * GCP.
      * 
* * string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2357,7 +2725,8 @@ public Builder setBucket(java.lang.String value) { * * *
-     * Output only. The communication channel between the datacenter connector and GCP.
+     * Output only. The communication channel between the datacenter connector and
+     * GCP.
      * 
* * string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2374,7 +2743,8 @@ public Builder clearBucket() { * * *
-     * Output only. The communication channel between the datacenter connector and GCP.
+     * Output only. The communication channel between the datacenter connector and
+     * GCP.
      * 
* * string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2398,7 +2768,8 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. State of the DatacenterConnector, as determined by the health checks.
+     * Output only. State of the DatacenterConnector, as determined by the health
+     * checks.
      * 
* * @@ -2415,7 +2786,8 @@ public int getStateValue() { * * *
-     * Output only. State of the DatacenterConnector, as determined by the health checks.
+     * Output only. State of the DatacenterConnector, as determined by the health
+     * checks.
      * 
* * @@ -2435,7 +2807,8 @@ public Builder setStateValue(int value) { * * *
-     * Output only. State of the DatacenterConnector, as determined by the health checks.
+     * Output only. State of the DatacenterConnector, as determined by the health
+     * checks.
      * 
* * @@ -2457,7 +2830,8 @@ public com.google.cloud.vmmigration.v1.DatacenterConnector.State getState() { * * *
-     * Output only. State of the DatacenterConnector, as determined by the health checks.
+     * Output only. State of the DatacenterConnector, as determined by the health
+     * checks.
      * 
* * @@ -2480,7 +2854,8 @@ public Builder setState(com.google.cloud.vmmigration.v1.DatacenterConnector.Stat * * *
-     * Output only. State of the DatacenterConnector, as determined by the health checks.
+     * Output only. State of the DatacenterConnector, as determined by the health
+     * checks.
      * 
* * @@ -2692,8 +3067,8 @@ public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { * * *
-     * Output only. Provides details on the state of the Datacenter Connector in case of an
-     * error.
+     * Output only. Provides details on the state of the Datacenter Connector in
+     * case of an error.
      * 
* * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2707,8 +3082,8 @@ public boolean hasError() { * * *
-     * Output only. Provides details on the state of the Datacenter Connector in case of an
-     * error.
+     * Output only. Provides details on the state of the Datacenter Connector in
+     * case of an error.
      * 
* * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2726,8 +3101,8 @@ public com.google.rpc.Status getError() { * * *
-     * Output only. Provides details on the state of the Datacenter Connector in case of an
-     * error.
+     * Output only. Provides details on the state of the Datacenter Connector in
+     * case of an error.
      * 
* * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2749,8 +3124,8 @@ public Builder setError(com.google.rpc.Status value) { * * *
-     * Output only. Provides details on the state of the Datacenter Connector in case of an
-     * error.
+     * Output only. Provides details on the state of the Datacenter Connector in
+     * case of an error.
      * 
* * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2769,8 +3144,8 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { * * *
-     * Output only. Provides details on the state of the Datacenter Connector in case of an
-     * error.
+     * Output only. Provides details on the state of the Datacenter Connector in
+     * case of an error.
      * 
* * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2793,8 +3168,8 @@ public Builder mergeError(com.google.rpc.Status value) { * * *
-     * Output only. Provides details on the state of the Datacenter Connector in case of an
-     * error.
+     * Output only. Provides details on the state of the Datacenter Connector in
+     * case of an error.
      * 
* * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2814,8 +3189,8 @@ public Builder clearError() { * * *
-     * Output only. Provides details on the state of the Datacenter Connector in case of an
-     * error.
+     * Output only. Provides details on the state of the Datacenter Connector in
+     * case of an error.
      * 
* * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2829,8 +3204,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() { * * *
-     * Output only. Provides details on the state of the Datacenter Connector in case of an
-     * error.
+     * Output only. Provides details on the state of the Datacenter Connector in
+     * case of an error.
      * 
* * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2846,8 +3221,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * * *
-     * Output only. Provides details on the state of the Datacenter Connector in case of an
-     * error.
+     * Output only. Provides details on the state of the Datacenter Connector in
+     * case of an error.
      * 
* * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2866,6 +3241,662 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { return errorBuilder_; } + private java.lang.Object applianceInfrastructureVersion_ = ""; + /** + * + * + *
+     * Output only. Appliance OVA version.
+     * This is the OVA which is manually installed by the user and contains the
+     * infrastructure for the automatically updatable components on the appliance.
+     * 
+ * + * + * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The applianceInfrastructureVersion. + */ + public java.lang.String getApplianceInfrastructureVersion() { + java.lang.Object ref = applianceInfrastructureVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applianceInfrastructureVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Appliance OVA version.
+     * This is the OVA which is manually installed by the user and contains the
+     * infrastructure for the automatically updatable components on the appliance.
+     * 
+ * + * + * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for applianceInfrastructureVersion. + */ + public com.google.protobuf.ByteString getApplianceInfrastructureVersionBytes() { + java.lang.Object ref = applianceInfrastructureVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applianceInfrastructureVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Appliance OVA version.
+     * This is the OVA which is manually installed by the user and contains the
+     * infrastructure for the automatically updatable components on the appliance.
+     * 
+ * + * + * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The applianceInfrastructureVersion to set. + * @return This builder for chaining. + */ + public Builder setApplianceInfrastructureVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + applianceInfrastructureVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Appliance OVA version.
+     * This is the OVA which is manually installed by the user and contains the
+     * infrastructure for the automatically updatable components on the appliance.
+     * 
+ * + * + * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearApplianceInfrastructureVersion() { + + applianceInfrastructureVersion_ = getDefaultInstance().getApplianceInfrastructureVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Appliance OVA version.
+     * This is the OVA which is manually installed by the user and contains the
+     * infrastructure for the automatically updatable components on the appliance.
+     * 
+ * + * + * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for applianceInfrastructureVersion to set. + * @return This builder for chaining. + */ + public Builder setApplianceInfrastructureVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + applianceInfrastructureVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object applianceSoftwareVersion_ = ""; + /** + * + * + *
+     * Output only. Appliance last installed update bundle version.
+     * This is the version of the automatically updatable components on the
+     * appliance.
+     * 
+ * + * string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The applianceSoftwareVersion. + */ + public java.lang.String getApplianceSoftwareVersion() { + java.lang.Object ref = applianceSoftwareVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applianceSoftwareVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Appliance last installed update bundle version.
+     * This is the version of the automatically updatable components on the
+     * appliance.
+     * 
+ * + * string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for applianceSoftwareVersion. + */ + public com.google.protobuf.ByteString getApplianceSoftwareVersionBytes() { + java.lang.Object ref = applianceSoftwareVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applianceSoftwareVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Appliance last installed update bundle version.
+     * This is the version of the automatically updatable components on the
+     * appliance.
+     * 
+ * + * string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The applianceSoftwareVersion to set. + * @return This builder for chaining. + */ + public Builder setApplianceSoftwareVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + applianceSoftwareVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Appliance last installed update bundle version.
+     * This is the version of the automatically updatable components on the
+     * appliance.
+     * 
+ * + * string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearApplianceSoftwareVersion() { + + applianceSoftwareVersion_ = getDefaultInstance().getApplianceSoftwareVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Appliance last installed update bundle version.
+     * This is the version of the automatically updatable components on the
+     * appliance.
+     * 
+ * + * string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for applianceSoftwareVersion to set. + * @return This builder for chaining. + */ + public Builder setApplianceSoftwareVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + applianceSoftwareVersion_ = value; + onChanged(); + return this; + } + + private com.google.cloud.vmmigration.v1.AvailableUpdates availableVersions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AvailableUpdates, + com.google.cloud.vmmigration.v1.AvailableUpdates.Builder, + com.google.cloud.vmmigration.v1.AvailableUpdatesOrBuilder> + availableVersionsBuilder_; + /** + * + * + *
+     * Output only. The available versions for updating this appliance.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the availableVersions field is set. + */ + public boolean hasAvailableVersions() { + return availableVersionsBuilder_ != null || availableVersions_ != null; + } + /** + * + * + *
+     * Output only. The available versions for updating this appliance.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The availableVersions. + */ + public com.google.cloud.vmmigration.v1.AvailableUpdates getAvailableVersions() { + if (availableVersionsBuilder_ == null) { + return availableVersions_ == null + ? com.google.cloud.vmmigration.v1.AvailableUpdates.getDefaultInstance() + : availableVersions_; + } else { + return availableVersionsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The available versions for updating this appliance.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAvailableVersions(com.google.cloud.vmmigration.v1.AvailableUpdates value) { + if (availableVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + availableVersions_ = value; + onChanged(); + } else { + availableVersionsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The available versions for updating this appliance.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAvailableVersions( + com.google.cloud.vmmigration.v1.AvailableUpdates.Builder builderForValue) { + if (availableVersionsBuilder_ == null) { + availableVersions_ = builderForValue.build(); + onChanged(); + } else { + availableVersionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The available versions for updating this appliance.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAvailableVersions(com.google.cloud.vmmigration.v1.AvailableUpdates value) { + if (availableVersionsBuilder_ == null) { + if (availableVersions_ != null) { + availableVersions_ = + com.google.cloud.vmmigration.v1.AvailableUpdates.newBuilder(availableVersions_) + .mergeFrom(value) + .buildPartial(); + } else { + availableVersions_ = value; + } + onChanged(); + } else { + availableVersionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The available versions for updating this appliance.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAvailableVersions() { + if (availableVersionsBuilder_ == null) { + availableVersions_ = null; + onChanged(); + } else { + availableVersions_ = null; + availableVersionsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The available versions for updating this appliance.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.AvailableUpdates.Builder getAvailableVersionsBuilder() { + + onChanged(); + return getAvailableVersionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The available versions for updating this appliance.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.AvailableUpdatesOrBuilder + getAvailableVersionsOrBuilder() { + if (availableVersionsBuilder_ != null) { + return availableVersionsBuilder_.getMessageOrBuilder(); + } else { + return availableVersions_ == null + ? com.google.cloud.vmmigration.v1.AvailableUpdates.getDefaultInstance() + : availableVersions_; + } + } + /** + * + * + *
+     * Output only. The available versions for updating this appliance.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AvailableUpdates, + com.google.cloud.vmmigration.v1.AvailableUpdates.Builder, + com.google.cloud.vmmigration.v1.AvailableUpdatesOrBuilder> + getAvailableVersionsFieldBuilder() { + if (availableVersionsBuilder_ == null) { + availableVersionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AvailableUpdates, + com.google.cloud.vmmigration.v1.AvailableUpdates.Builder, + com.google.cloud.vmmigration.v1.AvailableUpdatesOrBuilder>( + getAvailableVersions(), getParentForChildren(), isClean()); + availableVersions_ = null; + } + return availableVersionsBuilder_; + } + + private com.google.cloud.vmmigration.v1.UpgradeStatus upgradeStatus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.UpgradeStatus, + com.google.cloud.vmmigration.v1.UpgradeStatus.Builder, + com.google.cloud.vmmigration.v1.UpgradeStatusOrBuilder> + upgradeStatusBuilder_; + /** + * + * + *
+     * Output only. The status of the current / last upgradeAppliance operation.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the upgradeStatus field is set. + */ + public boolean hasUpgradeStatus() { + return upgradeStatusBuilder_ != null || upgradeStatus_ != null; + } + /** + * + * + *
+     * Output only. The status of the current / last upgradeAppliance operation.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The upgradeStatus. + */ + public com.google.cloud.vmmigration.v1.UpgradeStatus getUpgradeStatus() { + if (upgradeStatusBuilder_ == null) { + return upgradeStatus_ == null + ? com.google.cloud.vmmigration.v1.UpgradeStatus.getDefaultInstance() + : upgradeStatus_; + } else { + return upgradeStatusBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The status of the current / last upgradeAppliance operation.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpgradeStatus(com.google.cloud.vmmigration.v1.UpgradeStatus value) { + if (upgradeStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeStatus_ = value; + onChanged(); + } else { + upgradeStatusBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The status of the current / last upgradeAppliance operation.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpgradeStatus( + com.google.cloud.vmmigration.v1.UpgradeStatus.Builder builderForValue) { + if (upgradeStatusBuilder_ == null) { + upgradeStatus_ = builderForValue.build(); + onChanged(); + } else { + upgradeStatusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The status of the current / last upgradeAppliance operation.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpgradeStatus(com.google.cloud.vmmigration.v1.UpgradeStatus value) { + if (upgradeStatusBuilder_ == null) { + if (upgradeStatus_ != null) { + upgradeStatus_ = + com.google.cloud.vmmigration.v1.UpgradeStatus.newBuilder(upgradeStatus_) + .mergeFrom(value) + .buildPartial(); + } else { + upgradeStatus_ = value; + } + onChanged(); + } else { + upgradeStatusBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The status of the current / last upgradeAppliance operation.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpgradeStatus() { + if (upgradeStatusBuilder_ == null) { + upgradeStatus_ = null; + onChanged(); + } else { + upgradeStatus_ = null; + upgradeStatusBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The status of the current / last upgradeAppliance operation.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.UpgradeStatus.Builder getUpgradeStatusBuilder() { + + onChanged(); + return getUpgradeStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The status of the current / last upgradeAppliance operation.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.UpgradeStatusOrBuilder getUpgradeStatusOrBuilder() { + if (upgradeStatusBuilder_ != null) { + return upgradeStatusBuilder_.getMessageOrBuilder(); + } else { + return upgradeStatus_ == null + ? com.google.cloud.vmmigration.v1.UpgradeStatus.getDefaultInstance() + : upgradeStatus_; + } + } + /** + * + * + *
+     * Output only. The status of the current / last upgradeAppliance operation.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.UpgradeStatus, + com.google.cloud.vmmigration.v1.UpgradeStatus.Builder, + com.google.cloud.vmmigration.v1.UpgradeStatusOrBuilder> + getUpgradeStatusFieldBuilder() { + if (upgradeStatusBuilder_ == null) { + upgradeStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.UpgradeStatus, + com.google.cloud.vmmigration.v1.UpgradeStatus.Builder, + com.google.cloud.vmmigration.v1.UpgradeStatusOrBuilder>( + getUpgradeStatus(), getParentForChildren(), isClean()); + upgradeStatus_ = null; + } + return upgradeStatusBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DatacenterConnectorOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DatacenterConnectorOrBuilder.java index 58516c0d1b0b..68c24890c399 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DatacenterConnectorOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DatacenterConnectorOrBuilder.java @@ -27,8 +27,8 @@ public interface DatacenterConnectorOrBuilder * * *
-   * Output only. The time the connector was created (as an API call, not when it was
-   * actually installed).
+   * Output only. The time the connector was created (as an API call, not when
+   * it was actually installed).
    * 
* * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -41,8 +41,8 @@ public interface DatacenterConnectorOrBuilder * * *
-   * Output only. The time the connector was created (as an API call, not when it was
-   * actually installed).
+   * Output only. The time the connector was created (as an API call, not when
+   * it was actually installed).
    * 
* * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -55,8 +55,8 @@ public interface DatacenterConnectorOrBuilder * * *
-   * Output only. The time the connector was created (as an API call, not when it was
-   * actually installed).
+   * Output only. The time the connector was created (as an API call, not when
+   * it was actually installed).
    * 
* * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -131,9 +131,9 @@ public interface DatacenterConnectorOrBuilder * * *
-   * Immutable. A unique key for this connector. This key is internal to the OVA connector
-   * and is supplied with its creation during the registration process and can
-   * not be modified.
+   * Immutable. A unique key for this connector. This key is internal to the OVA
+   * connector and is supplied with its creation during the registration process
+   * and can not be modified.
    * 
* * string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE]; @@ -145,9 +145,9 @@ public interface DatacenterConnectorOrBuilder * * *
-   * Immutable. A unique key for this connector. This key is internal to the OVA connector
-   * and is supplied with its creation during the registration process and can
-   * not be modified.
+   * Immutable. A unique key for this connector. This key is internal to the OVA
+   * connector and is supplied with its creation during the registration process
+   * and can not be modified.
    * 
* * string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE]; @@ -214,7 +214,8 @@ public interface DatacenterConnectorOrBuilder * * *
-   * Output only. The communication channel between the datacenter connector and GCP.
+   * Output only. The communication channel between the datacenter connector and
+   * GCP.
    * 
* * string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -226,7 +227,8 @@ public interface DatacenterConnectorOrBuilder * * *
-   * Output only. The communication channel between the datacenter connector and GCP.
+   * Output only. The communication channel between the datacenter connector and
+   * GCP.
    * 
* * string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -239,7 +241,8 @@ public interface DatacenterConnectorOrBuilder * * *
-   * Output only. State of the DatacenterConnector, as determined by the health checks.
+   * Output only. State of the DatacenterConnector, as determined by the health
+   * checks.
    * 
* * @@ -253,7 +256,8 @@ public interface DatacenterConnectorOrBuilder * * *
-   * Output only. State of the DatacenterConnector, as determined by the health checks.
+   * Output only. State of the DatacenterConnector, as determined by the health
+   * checks.
    * 
* * @@ -306,8 +310,8 @@ public interface DatacenterConnectorOrBuilder * * *
-   * Output only. Provides details on the state of the Datacenter Connector in case of an
-   * error.
+   * Output only. Provides details on the state of the Datacenter Connector in
+   * case of an error.
    * 
* * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -319,8 +323,8 @@ public interface DatacenterConnectorOrBuilder * * *
-   * Output only. Provides details on the state of the Datacenter Connector in case of an
-   * error.
+   * Output only. Provides details on the state of the Datacenter Connector in
+   * case of an error.
    * 
* * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -332,11 +336,157 @@ public interface DatacenterConnectorOrBuilder * * *
-   * Output only. Provides details on the state of the Datacenter Connector in case of an
-   * error.
+   * Output only. Provides details on the state of the Datacenter Connector in
+   * case of an error.
    * 
* * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + + /** + * + * + *
+   * Output only. Appliance OVA version.
+   * This is the OVA which is manually installed by the user and contains the
+   * infrastructure for the automatically updatable components on the appliance.
+   * 
+ * + * + * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The applianceInfrastructureVersion. + */ + java.lang.String getApplianceInfrastructureVersion(); + /** + * + * + *
+   * Output only. Appliance OVA version.
+   * This is the OVA which is manually installed by the user and contains the
+   * infrastructure for the automatically updatable components on the appliance.
+   * 
+ * + * + * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for applianceInfrastructureVersion. + */ + com.google.protobuf.ByteString getApplianceInfrastructureVersionBytes(); + + /** + * + * + *
+   * Output only. Appliance last installed update bundle version.
+   * This is the version of the automatically updatable components on the
+   * appliance.
+   * 
+ * + * string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The applianceSoftwareVersion. + */ + java.lang.String getApplianceSoftwareVersion(); + /** + * + * + *
+   * Output only. Appliance last installed update bundle version.
+   * This is the version of the automatically updatable components on the
+   * appliance.
+   * 
+ * + * string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for applianceSoftwareVersion. + */ + com.google.protobuf.ByteString getApplianceSoftwareVersionBytes(); + + /** + * + * + *
+   * Output only. The available versions for updating this appliance.
+   * 
+ * + * + * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the availableVersions field is set. + */ + boolean hasAvailableVersions(); + /** + * + * + *
+   * Output only. The available versions for updating this appliance.
+   * 
+ * + * + * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The availableVersions. + */ + com.google.cloud.vmmigration.v1.AvailableUpdates getAvailableVersions(); + /** + * + * + *
+   * Output only. The available versions for updating this appliance.
+   * 
+ * + * + * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.AvailableUpdatesOrBuilder getAvailableVersionsOrBuilder(); + + /** + * + * + *
+   * Output only. The status of the current / last upgradeAppliance operation.
+   * 
+ * + * + * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the upgradeStatus field is set. + */ + boolean hasUpgradeStatus(); + /** + * + * + *
+   * Output only. The status of the current / last upgradeAppliance operation.
+   * 
+ * + * + * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The upgradeStatus. + */ + com.google.cloud.vmmigration.v1.UpgradeStatus getUpgradeStatus(); + /** + * + * + *
+   * Output only. The status of the current / last upgradeAppliance operation.
+   * 
+ * + * + * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.UpgradeStatusOrBuilder getUpgradeStatusOrBuilder(); } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchInventoryResponse.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchInventoryResponse.java index eaa6a32674fa..9d12b8d0522b 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchInventoryResponse.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchInventoryResponse.java @@ -186,12 +186,10 @@ public SourceVmsCase getSourceVmsCase() { * * *
-   * Output only. The description of the VMs in a Source of type Vmware.
+   * The description of the VMs in a Source of type Vmware.
    * 
* - * - * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1; * * @return Whether the vmwareVms field is set. */ @@ -203,12 +201,10 @@ public boolean hasVmwareVms() { * * *
-   * Output only. The description of the VMs in a Source of type Vmware.
+   * The description of the VMs in a Source of type Vmware.
    * 
* - * - * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1; * * @return The vmwareVms. */ @@ -223,12 +219,10 @@ public com.google.cloud.vmmigration.v1.VmwareVmsDetails getVmwareVms() { * * *
-   * Output only. The description of the VMs in a Source of type Vmware.
+   * The description of the VMs in a Source of type Vmware.
    * 
* - * - * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1; */ @java.lang.Override public com.google.cloud.vmmigration.v1.VmwareVmsDetailsOrBuilder getVmwareVmsOrBuilder() { @@ -244,8 +238,8 @@ public com.google.cloud.vmmigration.v1.VmwareVmsDetailsOrBuilder getVmwareVmsOrB * * *
-   * Output only. The timestamp when the source was last queried (if the result is from the
-   * cache).
+   * Output only. The timestamp when the source was last queried (if the result
+   * is from the cache).
    * 
* * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -261,8 +255,8 @@ public boolean hasUpdateTime() { * * *
-   * Output only. The timestamp when the source was last queried (if the result is from the
-   * cache).
+   * Output only. The timestamp when the source was last queried (if the result
+   * is from the cache).
    * 
* * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -278,8 +272,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { * * *
-   * Output only. The timestamp when the source was last queried (if the result is from the
-   * cache).
+   * Output only. The timestamp when the source was last queried (if the result
+   * is from the cache).
    * 
* * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -690,12 +684,10 @@ public Builder clearSourceVms() { * * *
-     * Output only. The description of the VMs in a Source of type Vmware.
+     * The description of the VMs in a Source of type Vmware.
      * 
* - * - * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1; * * @return Whether the vmwareVms field is set. */ @@ -707,12 +699,10 @@ public boolean hasVmwareVms() { * * *
-     * Output only. The description of the VMs in a Source of type Vmware.
+     * The description of the VMs in a Source of type Vmware.
      * 
* - * - * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1; * * @return The vmwareVms. */ @@ -734,12 +724,10 @@ public com.google.cloud.vmmigration.v1.VmwareVmsDetails getVmwareVms() { * * *
-     * Output only. The description of the VMs in a Source of type Vmware.
+     * The description of the VMs in a Source of type Vmware.
      * 
* - * - * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1; */ public Builder setVmwareVms(com.google.cloud.vmmigration.v1.VmwareVmsDetails value) { if (vmwareVmsBuilder_ == null) { @@ -758,12 +746,10 @@ public Builder setVmwareVms(com.google.cloud.vmmigration.v1.VmwareVmsDetails val * * *
-     * Output only. The description of the VMs in a Source of type Vmware.
+     * The description of the VMs in a Source of type Vmware.
      * 
* - * - * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1; */ public Builder setVmwareVms( com.google.cloud.vmmigration.v1.VmwareVmsDetails.Builder builderForValue) { @@ -780,12 +766,10 @@ public Builder setVmwareVms( * * *
-     * Output only. The description of the VMs in a Source of type Vmware.
+     * The description of the VMs in a Source of type Vmware.
      * 
* - * - * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1; */ public Builder mergeVmwareVms(com.google.cloud.vmmigration.v1.VmwareVmsDetails value) { if (vmwareVmsBuilder_ == null) { @@ -815,12 +799,10 @@ public Builder mergeVmwareVms(com.google.cloud.vmmigration.v1.VmwareVmsDetails v * * *
-     * Output only. The description of the VMs in a Source of type Vmware.
+     * The description of the VMs in a Source of type Vmware.
      * 
* - * - * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1; */ public Builder clearVmwareVms() { if (vmwareVmsBuilder_ == null) { @@ -842,12 +824,10 @@ public Builder clearVmwareVms() { * * *
-     * Output only. The description of the VMs in a Source of type Vmware.
+     * The description of the VMs in a Source of type Vmware.
      * 
* - * - * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1; */ public com.google.cloud.vmmigration.v1.VmwareVmsDetails.Builder getVmwareVmsBuilder() { return getVmwareVmsFieldBuilder().getBuilder(); @@ -856,12 +836,10 @@ public com.google.cloud.vmmigration.v1.VmwareVmsDetails.Builder getVmwareVmsBuil * * *
-     * Output only. The description of the VMs in a Source of type Vmware.
+     * The description of the VMs in a Source of type Vmware.
      * 
* - * - * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1; */ @java.lang.Override public com.google.cloud.vmmigration.v1.VmwareVmsDetailsOrBuilder getVmwareVmsOrBuilder() { @@ -878,12 +856,10 @@ public com.google.cloud.vmmigration.v1.VmwareVmsDetailsOrBuilder getVmwareVmsOrB * * *
-     * Output only. The description of the VMs in a Source of type Vmware.
+     * The description of the VMs in a Source of type Vmware.
      * 
* - * - * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.vmmigration.v1.VmwareVmsDetails, @@ -920,8 +896,8 @@ public com.google.cloud.vmmigration.v1.VmwareVmsDetailsOrBuilder getVmwareVmsOrB * * *
-     * Output only. The timestamp when the source was last queried (if the result is from the
-     * cache).
+     * Output only. The timestamp when the source was last queried (if the result
+     * is from the cache).
      * 
* * @@ -937,8 +913,8 @@ public boolean hasUpdateTime() { * * *
-     * Output only. The timestamp when the source was last queried (if the result is from the
-     * cache).
+     * Output only. The timestamp when the source was last queried (if the result
+     * is from the cache).
      * 
* * @@ -960,8 +936,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { * * *
-     * Output only. The timestamp when the source was last queried (if the result is from the
-     * cache).
+     * Output only. The timestamp when the source was last queried (if the result
+     * is from the cache).
      * 
* * @@ -985,8 +961,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The timestamp when the source was last queried (if the result is from the
-     * cache).
+     * Output only. The timestamp when the source was last queried (if the result
+     * is from the cache).
      * 
* * @@ -1007,8 +983,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. The timestamp when the source was last queried (if the result is from the
-     * cache).
+     * Output only. The timestamp when the source was last queried (if the result
+     * is from the cache).
      * 
* * @@ -1034,8 +1010,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The timestamp when the source was last queried (if the result is from the
-     * cache).
+     * Output only. The timestamp when the source was last queried (if the result
+     * is from the cache).
      * 
* * @@ -1057,8 +1033,8 @@ public Builder clearUpdateTime() { * * *
-     * Output only. The timestamp when the source was last queried (if the result is from the
-     * cache).
+     * Output only. The timestamp when the source was last queried (if the result
+     * is from the cache).
      * 
* * @@ -1074,8 +1050,8 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { * * *
-     * Output only. The timestamp when the source was last queried (if the result is from the
-     * cache).
+     * Output only. The timestamp when the source was last queried (if the result
+     * is from the cache).
      * 
* * @@ -1095,8 +1071,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-     * Output only. The timestamp when the source was last queried (if the result is from the
-     * cache).
+     * Output only. The timestamp when the source was last queried (if the result
+     * is from the cache).
      * 
* * diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchInventoryResponseOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchInventoryResponseOrBuilder.java index f1cab8f29309..c9a01c03a510 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchInventoryResponseOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchInventoryResponseOrBuilder.java @@ -27,12 +27,10 @@ public interface FetchInventoryResponseOrBuilder * * *
-   * Output only. The description of the VMs in a Source of type Vmware.
+   * The description of the VMs in a Source of type Vmware.
    * 
* - * - * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1; * * @return Whether the vmwareVms field is set. */ @@ -41,12 +39,10 @@ public interface FetchInventoryResponseOrBuilder * * *
-   * Output only. The description of the VMs in a Source of type Vmware.
+   * The description of the VMs in a Source of type Vmware.
    * 
* - * - * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1; * * @return The vmwareVms. */ @@ -55,12 +51,10 @@ public interface FetchInventoryResponseOrBuilder * * *
-   * Output only. The description of the VMs in a Source of type Vmware.
+   * The description of the VMs in a Source of type Vmware.
    * 
* - * - * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.vmmigration.v1.VmwareVmsDetails vmware_vms = 1; */ com.google.cloud.vmmigration.v1.VmwareVmsDetailsOrBuilder getVmwareVmsOrBuilder(); @@ -68,8 +62,8 @@ public interface FetchInventoryResponseOrBuilder * * *
-   * Output only. The timestamp when the source was last queried (if the result is from the
-   * cache).
+   * Output only. The timestamp when the source was last queried (if the result
+   * is from the cache).
    * 
* * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -82,8 +76,8 @@ public interface FetchInventoryResponseOrBuilder * * *
-   * Output only. The timestamp when the source was last queried (if the result is from the
-   * cache).
+   * Output only. The timestamp when the source was last queried (if the result
+   * is from the cache).
    * 
* * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -96,8 +90,8 @@ public interface FetchInventoryResponseOrBuilder * * *
-   * Output only. The timestamp when the source was last queried (if the result is from the
-   * cache).
+   * Output only. The timestamp when the source was last queried (if the result
+   * is from the cache).
    * 
* * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetMigratingVmRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetMigratingVmRequest.java index 08b3eb7a305b..4390a6b7c58b 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetMigratingVmRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetMigratingVmRequest.java @@ -39,6 +39,7 @@ private GetMigratingVmRequest(com.google.protobuf.GeneratedMessageV3.Builder private GetMigratingVmRequest() { name_ = ""; + view_ = 0; } @java.lang.Override @@ -77,6 +78,13 @@ private GetMigratingVmRequest( name_ = s; break; } + case 16: + { + int rawValue = input.readEnum(); + + view_ = rawValue; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -166,6 +174,46 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int VIEW_FIELD_NUMBER = 2; + private int view_; + /** + * + * + *
+   * Optional. The level of details of the migrating VM.
+   * 
+ * + * + * .google.cloud.vmmigration.v1.MigratingVmView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+   * Optional. The level of details of the migrating VM.
+   * 
+ * + * + * .google.cloud.vmmigration.v1.MigratingVmView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.MigratingVmView getView() { + @SuppressWarnings("deprecation") + com.google.cloud.vmmigration.v1.MigratingVmView result = + com.google.cloud.vmmigration.v1.MigratingVmView.valueOf(view_); + return result == null ? com.google.cloud.vmmigration.v1.MigratingVmView.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -183,6 +231,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } + if (view_ + != com.google.cloud.vmmigration.v1.MigratingVmView.MIGRATING_VM_VIEW_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, view_); + } unknownFields.writeTo(output); } @@ -195,6 +248,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } + if (view_ + != com.google.cloud.vmmigration.v1.MigratingVmView.MIGRATING_VM_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -212,6 +270,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.vmmigration.v1.GetMigratingVmRequest) obj; if (!getName().equals(other.getName())) return false; + if (view_ != other.view_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -225,6 +284,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -373,6 +434,8 @@ public Builder clear() { super.clear(); name_ = ""; + view_ = 0; + return this; } @@ -401,6 +464,7 @@ public com.google.cloud.vmmigration.v1.GetMigratingVmRequest buildPartial() { com.google.cloud.vmmigration.v1.GetMigratingVmRequest result = new com.google.cloud.vmmigration.v1.GetMigratingVmRequest(this); result.name_ = name_; + result.view_ = view_; onBuilt(); return result; } @@ -455,6 +519,9 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.GetMigratingVmRequest o name_ = other.name_; onChanged(); } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -601,6 +668,107 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private int view_ = 0; + /** + * + * + *
+     * Optional. The level of details of the migrating VM.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.MigratingVmView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+     * Optional. The level of details of the migrating VM.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.MigratingVmView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + + view_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The level of details of the migrating VM.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.MigratingVmView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.MigratingVmView getView() { + @SuppressWarnings("deprecation") + com.google.cloud.vmmigration.v1.MigratingVmView result = + com.google.cloud.vmmigration.v1.MigratingVmView.valueOf(view_); + return result == null ? com.google.cloud.vmmigration.v1.MigratingVmView.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional. The level of details of the migrating VM.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.MigratingVmView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.cloud.vmmigration.v1.MigratingVmView value) { + if (value == null) { + throw new NullPointerException(); + } + + view_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The level of details of the migrating VM.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.MigratingVmView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + + view_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetMigratingVmRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetMigratingVmRequestOrBuilder.java index ab3c4474ac99..bb45c675daaa 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetMigratingVmRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetMigratingVmRequestOrBuilder.java @@ -51,4 +51,33 @@ public interface GetMigratingVmRequestOrBuilder * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The level of details of the migrating VM.
+   * 
+ * + * + * .google.cloud.vmmigration.v1.MigratingVmView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + /** + * + * + *
+   * Optional. The level of details of the migrating VM.
+   * 
+ * + * + * .google.cloud.vmmigration.v1.MigratingVmView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.cloud.vmmigration.v1.MigratingVmView getView(); } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/Group.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/Group.java index 2a4705911eb9..773cebf5fb5d 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/Group.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/Group.java @@ -166,10 +166,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The Group name.
+   * Output only. The Group name.
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -189,10 +189,10 @@ public java.lang.String getName() { * * *
-   * The Group name.
+   * Output only. The Group name.
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -813,10 +813,10 @@ public Builder mergeFrom( * * *
-     * The Group name.
+     * Output only. The Group name.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -835,10 +835,10 @@ public java.lang.String getName() { * * *
-     * The Group name.
+     * Output only. The Group name.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -857,10 +857,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The Group name.
+     * Output only. The Group name.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The name to set. * @return This builder for chaining. @@ -878,10 +878,10 @@ public Builder setName(java.lang.String value) { * * *
-     * The Group name.
+     * Output only. The Group name.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -895,10 +895,10 @@ public Builder clearName() { * * *
-     * The Group name.
+     * Output only. The Group name.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GroupOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GroupOrBuilder.java index d424562cfd91..00856bf7a1cf 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GroupOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GroupOrBuilder.java @@ -27,10 +27,10 @@ public interface GroupOrBuilder * * *
-   * The Group name.
+   * Output only. The Group name.
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -39,10 +39,10 @@ public interface GroupOrBuilder * * *
-   * The Group name.
+   * Output only. The Group name.
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCloneJobsRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCloneJobsRequest.java index 6366d29dc704..5e7e48c0785a 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCloneJobsRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCloneJobsRequest.java @@ -201,10 +201,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Optional. The maximum number of clone jobs to return. The service may return
-   * fewer than this value. If unspecified, at most 500 clone jobs will be
-   * returned. The maximum value is 1000; values above 1000 will be coerced to
-   * 1000.
+   * Optional. The maximum number of clone jobs to return. The service may
+   * return fewer than this value. If unspecified, at most 500 clone jobs will
+   * be returned. The maximum value is 1000; values above 1000 will be coerced
+   * to 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -871,10 +871,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The maximum number of clone jobs to return. The service may return
-     * fewer than this value. If unspecified, at most 500 clone jobs will be
-     * returned. The maximum value is 1000; values above 1000 will be coerced to
-     * 1000.
+     * Optional. The maximum number of clone jobs to return. The service may
+     * return fewer than this value. If unspecified, at most 500 clone jobs will
+     * be returned. The maximum value is 1000; values above 1000 will be coerced
+     * to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -889,10 +889,10 @@ public int getPageSize() { * * *
-     * Optional. The maximum number of clone jobs to return. The service may return
-     * fewer than this value. If unspecified, at most 500 clone jobs will be
-     * returned. The maximum value is 1000; values above 1000 will be coerced to
-     * 1000.
+     * Optional. The maximum number of clone jobs to return. The service may
+     * return fewer than this value. If unspecified, at most 500 clone jobs will
+     * be returned. The maximum value is 1000; values above 1000 will be coerced
+     * to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -910,10 +910,10 @@ public Builder setPageSize(int value) { * * *
-     * Optional. The maximum number of clone jobs to return. The service may return
-     * fewer than this value. If unspecified, at most 500 clone jobs will be
-     * returned. The maximum value is 1000; values above 1000 will be coerced to
-     * 1000.
+     * Optional. The maximum number of clone jobs to return. The service may
+     * return fewer than this value. If unspecified, at most 500 clone jobs will
+     * be returned. The maximum value is 1000; values above 1000 will be coerced
+     * to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCloneJobsRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCloneJobsRequestOrBuilder.java index 582ab14e366e..eca68001b460 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCloneJobsRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCloneJobsRequestOrBuilder.java @@ -56,10 +56,10 @@ public interface ListCloneJobsRequestOrBuilder * * *
-   * Optional. The maximum number of clone jobs to return. The service may return
-   * fewer than this value. If unspecified, at most 500 clone jobs will be
-   * returned. The maximum value is 1000; values above 1000 will be coerced to
-   * 1000.
+   * Optional. The maximum number of clone jobs to return. The service may
+   * return fewer than this value. If unspecified, at most 500 clone jobs will
+   * be returned. The maximum value is 1000; values above 1000 will be coerced
+   * to 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCloneJobsResponse.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCloneJobsResponse.java index 7076cf7e2bb5..883f26714a37 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCloneJobsResponse.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCloneJobsResponse.java @@ -228,8 +228,8 @@ public com.google.cloud.vmmigration.v1.CloneJobOrBuilder getCloneJobsOrBuilder(i * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -252,8 +252,8 @@ public java.lang.String getNextPageToken() { * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1134,8 +1134,8 @@ public com.google.cloud.vmmigration.v1.CloneJob.Builder addCloneJobsBuilder(int * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1157,8 +1157,8 @@ public java.lang.String getNextPageToken() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1180,8 +1180,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1202,8 +1202,8 @@ public Builder setNextPageToken(java.lang.String value) { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1220,8 +1220,8 @@ public Builder clearNextPageToken() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCloneJobsResponseOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCloneJobsResponseOrBuilder.java index 16cf164ce6ca..c0dceab651cb 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCloneJobsResponseOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCloneJobsResponseOrBuilder.java @@ -89,8 +89,8 @@ public interface ListCloneJobsResponseOrBuilder * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -102,8 +102,8 @@ public interface ListCloneJobsResponseOrBuilder * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCutoverJobsRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCutoverJobsRequest.java index 4b5b7ccf31bd..1f6b46b3440e 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCutoverJobsRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCutoverJobsRequest.java @@ -201,10 +201,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Optional. The maximum number of cutover jobs to return. The service may return
-   * fewer than this value. If unspecified, at most 500 cutover jobs will be
-   * returned. The maximum value is 1000; values above 1000 will be coerced to
-   * 1000.
+   * Optional. The maximum number of cutover jobs to return. The service may
+   * return fewer than this value. If unspecified, at most 500 cutover jobs will
+   * be returned. The maximum value is 1000; values above 1000 will be coerced
+   * to 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -872,10 +872,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The maximum number of cutover jobs to return. The service may return
-     * fewer than this value. If unspecified, at most 500 cutover jobs will be
-     * returned. The maximum value is 1000; values above 1000 will be coerced to
-     * 1000.
+     * Optional. The maximum number of cutover jobs to return. The service may
+     * return fewer than this value. If unspecified, at most 500 cutover jobs will
+     * be returned. The maximum value is 1000; values above 1000 will be coerced
+     * to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -890,10 +890,10 @@ public int getPageSize() { * * *
-     * Optional. The maximum number of cutover jobs to return. The service may return
-     * fewer than this value. If unspecified, at most 500 cutover jobs will be
-     * returned. The maximum value is 1000; values above 1000 will be coerced to
-     * 1000.
+     * Optional. The maximum number of cutover jobs to return. The service may
+     * return fewer than this value. If unspecified, at most 500 cutover jobs will
+     * be returned. The maximum value is 1000; values above 1000 will be coerced
+     * to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -911,10 +911,10 @@ public Builder setPageSize(int value) { * * *
-     * Optional. The maximum number of cutover jobs to return. The service may return
-     * fewer than this value. If unspecified, at most 500 cutover jobs will be
-     * returned. The maximum value is 1000; values above 1000 will be coerced to
-     * 1000.
+     * Optional. The maximum number of cutover jobs to return. The service may
+     * return fewer than this value. If unspecified, at most 500 cutover jobs will
+     * be returned. The maximum value is 1000; values above 1000 will be coerced
+     * to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCutoverJobsRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCutoverJobsRequestOrBuilder.java index ea27b0ac96ec..a624583f85b1 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCutoverJobsRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCutoverJobsRequestOrBuilder.java @@ -56,10 +56,10 @@ public interface ListCutoverJobsRequestOrBuilder * * *
-   * Optional. The maximum number of cutover jobs to return. The service may return
-   * fewer than this value. If unspecified, at most 500 cutover jobs will be
-   * returned. The maximum value is 1000; values above 1000 will be coerced to
-   * 1000.
+   * Optional. The maximum number of cutover jobs to return. The service may
+   * return fewer than this value. If unspecified, at most 500 cutover jobs will
+   * be returned. The maximum value is 1000; values above 1000 will be coerced
+   * to 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCutoverJobsResponse.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCutoverJobsResponse.java index 8bb2fe3c428e..f4a1d3d2b430 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCutoverJobsResponse.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCutoverJobsResponse.java @@ -229,8 +229,8 @@ public com.google.cloud.vmmigration.v1.CutoverJobOrBuilder getCutoverJobsOrBuild * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -253,8 +253,8 @@ public java.lang.String getNextPageToken() { * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1137,8 +1137,8 @@ public com.google.cloud.vmmigration.v1.CutoverJob.Builder addCutoverJobsBuilder( * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1160,8 +1160,8 @@ public java.lang.String getNextPageToken() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1183,8 +1183,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1205,8 +1205,8 @@ public Builder setNextPageToken(java.lang.String value) { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1223,8 +1223,8 @@ public Builder clearNextPageToken() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCutoverJobsResponseOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCutoverJobsResponseOrBuilder.java index 748116c71e77..88a2f55e8a4d 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCutoverJobsResponseOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListCutoverJobsResponseOrBuilder.java @@ -89,8 +89,8 @@ public interface ListCutoverJobsResponseOrBuilder * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -102,8 +102,8 @@ public interface ListCutoverJobsResponseOrBuilder * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDatacenterConnectorsRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDatacenterConnectorsRequest.java index 6eae49ddcf4c..1420028172eb 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDatacenterConnectorsRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDatacenterConnectorsRequest.java @@ -202,8 +202,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Optional. The maximum number of connectors to return. The service may return
-   * fewer than this value. If unspecified, at most 500 sources will be
+   * Optional. The maximum number of connectors to return. The service may
+   * return fewer than this value. If unspecified, at most 500 sources will be
    * returned. The maximum value is 1000; values above 1000 will be coerced to
    * 1000.
    * 
@@ -223,8 +223,8 @@ public int getPageSize() { * * *
-   * Required. A page token, received from a previous `ListDatacenterConnectors` call.
-   * Provide this to retrieve the subsequent page.
+   * Required. A page token, received from a previous `ListDatacenterConnectors`
+   * call. Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to
    * `ListDatacenterConnectors` must match the call that provided the page
    * token.
@@ -250,8 +250,8 @@ public java.lang.String getPageToken() {
    *
    *
    * 
-   * Required. A page token, received from a previous `ListDatacenterConnectors` call.
-   * Provide this to retrieve the subsequent page.
+   * Required. A page token, received from a previous `ListDatacenterConnectors`
+   * call. Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to
    * `ListDatacenterConnectors` must match the call that provided the page
    * token.
@@ -879,8 +879,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Optional. The maximum number of connectors to return. The service may return
-     * fewer than this value. If unspecified, at most 500 sources will be
+     * Optional. The maximum number of connectors to return. The service may
+     * return fewer than this value. If unspecified, at most 500 sources will be
      * returned. The maximum value is 1000; values above 1000 will be coerced to
      * 1000.
      * 
@@ -897,8 +897,8 @@ public int getPageSize() { * * *
-     * Optional. The maximum number of connectors to return. The service may return
-     * fewer than this value. If unspecified, at most 500 sources will be
+     * Optional. The maximum number of connectors to return. The service may
+     * return fewer than this value. If unspecified, at most 500 sources will be
      * returned. The maximum value is 1000; values above 1000 will be coerced to
      * 1000.
      * 
@@ -918,8 +918,8 @@ public Builder setPageSize(int value) { * * *
-     * Optional. The maximum number of connectors to return. The service may return
-     * fewer than this value. If unspecified, at most 500 sources will be
+     * Optional. The maximum number of connectors to return. The service may
+     * return fewer than this value. If unspecified, at most 500 sources will be
      * returned. The maximum value is 1000; values above 1000 will be coerced to
      * 1000.
      * 
@@ -940,8 +940,8 @@ public Builder clearPageSize() { * * *
-     * Required. A page token, received from a previous `ListDatacenterConnectors` call.
-     * Provide this to retrieve the subsequent page.
+     * Required. A page token, received from a previous `ListDatacenterConnectors`
+     * call. Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to
      * `ListDatacenterConnectors` must match the call that provided the page
      * token.
@@ -966,8 +966,8 @@ public java.lang.String getPageToken() {
      *
      *
      * 
-     * Required. A page token, received from a previous `ListDatacenterConnectors` call.
-     * Provide this to retrieve the subsequent page.
+     * Required. A page token, received from a previous `ListDatacenterConnectors`
+     * call. Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to
      * `ListDatacenterConnectors` must match the call that provided the page
      * token.
@@ -992,8 +992,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      *
      *
      * 
-     * Required. A page token, received from a previous `ListDatacenterConnectors` call.
-     * Provide this to retrieve the subsequent page.
+     * Required. A page token, received from a previous `ListDatacenterConnectors`
+     * call. Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to
      * `ListDatacenterConnectors` must match the call that provided the page
      * token.
@@ -1017,8 +1017,8 @@ public Builder setPageToken(java.lang.String value) {
      *
      *
      * 
-     * Required. A page token, received from a previous `ListDatacenterConnectors` call.
-     * Provide this to retrieve the subsequent page.
+     * Required. A page token, received from a previous `ListDatacenterConnectors`
+     * call. Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to
      * `ListDatacenterConnectors` must match the call that provided the page
      * token.
@@ -1038,8 +1038,8 @@ public Builder clearPageToken() {
      *
      *
      * 
-     * Required. A page token, received from a previous `ListDatacenterConnectors` call.
-     * Provide this to retrieve the subsequent page.
+     * Required. A page token, received from a previous `ListDatacenterConnectors`
+     * call. Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to
      * `ListDatacenterConnectors` must match the call that provided the page
      * token.
diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDatacenterConnectorsRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDatacenterConnectorsRequestOrBuilder.java
index 82465335488d..16864f832208 100644
--- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDatacenterConnectorsRequestOrBuilder.java
+++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDatacenterConnectorsRequestOrBuilder.java
@@ -56,8 +56,8 @@ public interface ListDatacenterConnectorsRequestOrBuilder
    *
    *
    * 
-   * Optional. The maximum number of connectors to return. The service may return
-   * fewer than this value. If unspecified, at most 500 sources will be
+   * Optional. The maximum number of connectors to return. The service may
+   * return fewer than this value. If unspecified, at most 500 sources will be
    * returned. The maximum value is 1000; values above 1000 will be coerced to
    * 1000.
    * 
@@ -72,8 +72,8 @@ public interface ListDatacenterConnectorsRequestOrBuilder * * *
-   * Required. A page token, received from a previous `ListDatacenterConnectors` call.
-   * Provide this to retrieve the subsequent page.
+   * Required. A page token, received from a previous `ListDatacenterConnectors`
+   * call. Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to
    * `ListDatacenterConnectors` must match the call that provided the page
    * token.
@@ -88,8 +88,8 @@ public interface ListDatacenterConnectorsRequestOrBuilder
    *
    *
    * 
-   * Required. A page token, received from a previous `ListDatacenterConnectors` call.
-   * Provide this to retrieve the subsequent page.
+   * Required. A page token, received from a previous `ListDatacenterConnectors`
+   * call. Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to
    * `ListDatacenterConnectors` must match the call that provided the page
    * token.
diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDatacenterConnectorsResponse.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDatacenterConnectorsResponse.java
index 5317b31f9743..fff4c6436c49 100644
--- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDatacenterConnectorsResponse.java
+++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDatacenterConnectorsResponse.java
@@ -233,8 +233,8 @@ public com.google.cloud.vmmigration.v1.DatacenterConnector getDatacenterConnecto
    *
    *
    * 
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -257,8 +257,8 @@ public java.lang.String getNextPageToken() { * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1159,8 +1159,8 @@ public Builder removeDatacenterConnectors(int index) { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1182,8 +1182,8 @@ public java.lang.String getNextPageToken() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1205,8 +1205,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1227,8 +1227,8 @@ public Builder setNextPageToken(java.lang.String value) { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1245,8 +1245,8 @@ public Builder clearNextPageToken() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDatacenterConnectorsResponseOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDatacenterConnectorsResponseOrBuilder.java index 157913cc198f..8dae39822877 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDatacenterConnectorsResponseOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDatacenterConnectorsResponseOrBuilder.java @@ -90,8 +90,8 @@ com.google.cloud.vmmigration.v1.DatacenterConnectorOrBuilder getDatacenterConnec * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -103,8 +103,8 @@ com.google.cloud.vmmigration.v1.DatacenterConnectorOrBuilder getDatacenterConnec * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListGroupsResponse.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListGroupsResponse.java index 25120f02e7af..12fdf61c5067 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListGroupsResponse.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListGroupsResponse.java @@ -228,8 +228,8 @@ public com.google.cloud.vmmigration.v1.GroupOrBuilder getGroupsOrBuilder(int ind * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -252,8 +252,8 @@ public java.lang.String getNextPageToken() { * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1132,8 +1132,8 @@ public java.util.List getGroupsBu * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1155,8 +1155,8 @@ public java.lang.String getNextPageToken() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1178,8 +1178,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1200,8 +1200,8 @@ public Builder setNextPageToken(java.lang.String value) { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1218,8 +1218,8 @@ public Builder clearNextPageToken() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListGroupsResponseOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListGroupsResponseOrBuilder.java index 1e4b687a4167..d8930536d9d7 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListGroupsResponseOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListGroupsResponseOrBuilder.java @@ -88,8 +88,8 @@ public interface ListGroupsResponseOrBuilder * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -101,8 +101,8 @@ public interface ListGroupsResponseOrBuilder * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListMigratingVmsRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListMigratingVmsRequest.java index 41746a5cf994..6cb41efbb9f1 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListMigratingVmsRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListMigratingVmsRequest.java @@ -42,6 +42,7 @@ private ListMigratingVmsRequest() { pageToken_ = ""; filter_ = ""; orderBy_ = ""; + view_ = 0; } @java.lang.Override @@ -106,6 +107,13 @@ private ListMigratingVmsRequest( orderBy_ = s; break; } + case 48: + { + int rawValue = input.readEnum(); + + view_ = rawValue; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -201,10 +209,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Optional. The maximum number of migrating VMs to return. The service may return
-   * fewer than this value. If unspecified, at most 500 migrating VMs will be
-   * returned. The maximum value is 1000; values above 1000 will be coerced to
-   * 1000.
+   * Optional. The maximum number of migrating VMs to return. The service may
+   * return fewer than this value. If unspecified, at most 500 migrating VMs
+   * will be returned. The maximum value is 1000; values above 1000 will be
+   * coerced to 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -369,6 +377,46 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } + public static final int VIEW_FIELD_NUMBER = 6; + private int view_; + /** + * + * + *
+   * Optional. The level of details of each migrating VM.
+   * 
+ * + * + * .google.cloud.vmmigration.v1.MigratingVmView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+   * Optional. The level of details of each migrating VM.
+   * 
+ * + * + * .google.cloud.vmmigration.v1.MigratingVmView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.MigratingVmView getView() { + @SuppressWarnings("deprecation") + com.google.cloud.vmmigration.v1.MigratingVmView result = + com.google.cloud.vmmigration.v1.MigratingVmView.valueOf(view_); + return result == null ? com.google.cloud.vmmigration.v1.MigratingVmView.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -398,6 +446,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); } + if (view_ + != com.google.cloud.vmmigration.v1.MigratingVmView.MIGRATING_VM_VIEW_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, view_); + } unknownFields.writeTo(output); } @@ -422,6 +475,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); } + if (view_ + != com.google.cloud.vmmigration.v1.MigratingVmView.MIGRATING_VM_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, view_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -443,6 +501,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPageToken().equals(other.getPageToken())) return false; if (!getFilter().equals(other.getFilter())) return false; if (!getOrderBy().equals(other.getOrderBy())) return false; + if (view_ != other.view_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -464,6 +523,8 @@ public int hashCode() { hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -620,6 +681,8 @@ public Builder clear() { orderBy_ = ""; + view_ = 0; + return this; } @@ -652,6 +715,7 @@ public com.google.cloud.vmmigration.v1.ListMigratingVmsRequest buildPartial() { result.pageToken_ = pageToken_; result.filter_ = filter_; result.orderBy_ = orderBy_; + result.view_ = view_; onBuilt(); return result; } @@ -721,6 +785,9 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.ListMigratingVmsRequest orderBy_ = other.orderBy_; onChanged(); } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -872,10 +939,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The maximum number of migrating VMs to return. The service may return
-     * fewer than this value. If unspecified, at most 500 migrating VMs will be
-     * returned. The maximum value is 1000; values above 1000 will be coerced to
-     * 1000.
+     * Optional. The maximum number of migrating VMs to return. The service may
+     * return fewer than this value. If unspecified, at most 500 migrating VMs
+     * will be returned. The maximum value is 1000; values above 1000 will be
+     * coerced to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -890,10 +957,10 @@ public int getPageSize() { * * *
-     * Optional. The maximum number of migrating VMs to return. The service may return
-     * fewer than this value. If unspecified, at most 500 migrating VMs will be
-     * returned. The maximum value is 1000; values above 1000 will be coerced to
-     * 1000.
+     * Optional. The maximum number of migrating VMs to return. The service may
+     * return fewer than this value. If unspecified, at most 500 migrating VMs
+     * will be returned. The maximum value is 1000; values above 1000 will be
+     * coerced to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -911,10 +978,10 @@ public Builder setPageSize(int value) { * * *
-     * Optional. The maximum number of migrating VMs to return. The service may return
-     * fewer than this value. If unspecified, at most 500 migrating VMs will be
-     * returned. The maximum value is 1000; values above 1000 will be coerced to
-     * 1000.
+     * Optional. The maximum number of migrating VMs to return. The service may
+     * return fewer than this value. If unspecified, at most 500 migrating VMs
+     * will be returned. The maximum value is 1000; values above 1000 will be
+     * coerced to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1261,6 +1328,107 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { return this; } + private int view_ = 0; + /** + * + * + *
+     * Optional. The level of details of each migrating VM.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.MigratingVmView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+     * Optional. The level of details of each migrating VM.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.MigratingVmView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + + view_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The level of details of each migrating VM.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.MigratingVmView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.MigratingVmView getView() { + @SuppressWarnings("deprecation") + com.google.cloud.vmmigration.v1.MigratingVmView result = + com.google.cloud.vmmigration.v1.MigratingVmView.valueOf(view_); + return result == null ? com.google.cloud.vmmigration.v1.MigratingVmView.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional. The level of details of each migrating VM.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.MigratingVmView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.cloud.vmmigration.v1.MigratingVmView value) { + if (value == null) { + throw new NullPointerException(); + } + + view_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The level of details of each migrating VM.
+     * 
+ * + * + * .google.cloud.vmmigration.v1.MigratingVmView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + + view_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListMigratingVmsRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListMigratingVmsRequestOrBuilder.java index b1c4b35b59a1..0cf1d187eba9 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListMigratingVmsRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListMigratingVmsRequestOrBuilder.java @@ -56,10 +56,10 @@ public interface ListMigratingVmsRequestOrBuilder * * *
-   * Optional. The maximum number of migrating VMs to return. The service may return
-   * fewer than this value. If unspecified, at most 500 migrating VMs will be
-   * returned. The maximum value is 1000; values above 1000 will be coerced to
-   * 1000.
+   * Optional. The maximum number of migrating VMs to return. The service may
+   * return fewer than this value. If unspecified, at most 500 migrating VMs
+   * will be returned. The maximum value is 1000; values above 1000 will be
+   * coerced to 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -148,4 +148,33 @@ public interface ListMigratingVmsRequestOrBuilder * @return The bytes for orderBy. */ com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional. The level of details of each migrating VM.
+   * 
+ * + * + * .google.cloud.vmmigration.v1.MigratingVmView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + /** + * + * + *
+   * Optional. The level of details of each migrating VM.
+   * 
+ * + * + * .google.cloud.vmmigration.v1.MigratingVmView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.cloud.vmmigration.v1.MigratingVmView getView(); } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListMigratingVmsResponse.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListMigratingVmsResponse.java index ab27d24627ad..116414dbd18d 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListMigratingVmsResponse.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListMigratingVmsResponse.java @@ -229,8 +229,8 @@ public com.google.cloud.vmmigration.v1.MigratingVmOrBuilder getMigratingVmsOrBui * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -253,8 +253,8 @@ public java.lang.String getNextPageToken() { * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1138,8 +1138,8 @@ public com.google.cloud.vmmigration.v1.MigratingVm.Builder addMigratingVmsBuilde * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1161,8 +1161,8 @@ public java.lang.String getNextPageToken() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1184,8 +1184,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1206,8 +1206,8 @@ public Builder setNextPageToken(java.lang.String value) { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1224,8 +1224,8 @@ public Builder clearNextPageToken() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListMigratingVmsResponseOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListMigratingVmsResponseOrBuilder.java index 4e7365610928..00df716d00d4 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListMigratingVmsResponseOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListMigratingVmsResponseOrBuilder.java @@ -89,8 +89,8 @@ public interface ListMigratingVmsResponseOrBuilder * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -102,8 +102,8 @@ public interface ListMigratingVmsResponseOrBuilder * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListSourcesResponse.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListSourcesResponse.java index 4cfda30ecef0..bbc8a88ff0ac 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListSourcesResponse.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListSourcesResponse.java @@ -228,8 +228,8 @@ public com.google.cloud.vmmigration.v1.SourceOrBuilder getSourcesOrBuilder(int i * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -252,8 +252,8 @@ public java.lang.String getNextPageToken() { * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1132,8 +1132,8 @@ public java.util.List getSources * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1155,8 +1155,8 @@ public java.lang.String getNextPageToken() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1178,8 +1178,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1200,8 +1200,8 @@ public Builder setNextPageToken(java.lang.String value) { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1218,8 +1218,8 @@ public Builder clearNextPageToken() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListSourcesResponseOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListSourcesResponseOrBuilder.java index 5682d84c00c9..6d6b4fc3113e 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListSourcesResponseOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListSourcesResponseOrBuilder.java @@ -89,8 +89,8 @@ public interface ListSourcesResponseOrBuilder * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -102,8 +102,8 @@ public interface ListSourcesResponseOrBuilder * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListTargetProjectsResponse.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListTargetProjectsResponse.java index 635c8cd6e5c6..9de2948359b0 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListTargetProjectsResponse.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListTargetProjectsResponse.java @@ -230,8 +230,8 @@ public com.google.cloud.vmmigration.v1.TargetProjectOrBuilder getTargetProjectsO * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -254,8 +254,8 @@ public java.lang.String getNextPageToken() { * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1146,8 +1146,8 @@ public com.google.cloud.vmmigration.v1.TargetProject.Builder addTargetProjectsBu * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1169,8 +1169,8 @@ public java.lang.String getNextPageToken() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1192,8 +1192,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1214,8 +1214,8 @@ public Builder setNextPageToken(java.lang.String value) { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1232,8 +1232,8 @@ public Builder clearNextPageToken() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListTargetProjectsResponseOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListTargetProjectsResponseOrBuilder.java index 5d87df420cea..637d68ae0fd6 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListTargetProjectsResponseOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListTargetProjectsResponseOrBuilder.java @@ -89,8 +89,8 @@ public interface ListTargetProjectsResponseOrBuilder * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -102,8 +102,8 @@ public interface ListTargetProjectsResponseOrBuilder * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListUtilizationReportsRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListUtilizationReportsRequest.java index 73c5cde3a035..7f51d03589ea 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListUtilizationReportsRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListUtilizationReportsRequest.java @@ -274,8 +274,8 @@ public int getPageSize() { * * *
-   * Required. A page token, received from a previous `ListUtilizationReports` call.
-   * Provide this to retrieve the subsequent page.
+   * Required. A page token, received from a previous `ListUtilizationReports`
+   * call. Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListUtilizationReports`
    * must match the call that provided the page token.
    * 
@@ -300,8 +300,8 @@ public java.lang.String getPageToken() { * * *
-   * Required. A page token, received from a previous `ListUtilizationReports` call.
-   * Provide this to retrieve the subsequent page.
+   * Required. A page token, received from a previous `ListUtilizationReports`
+   * call. Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListUtilizationReports`
    * must match the call that provided the page token.
    * 
@@ -1115,8 +1115,8 @@ public Builder clearPageSize() { * * *
-     * Required. A page token, received from a previous `ListUtilizationReports` call.
-     * Provide this to retrieve the subsequent page.
+     * Required. A page token, received from a previous `ListUtilizationReports`
+     * call. Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListUtilizationReports`
      * must match the call that provided the page token.
      * 
@@ -1140,8 +1140,8 @@ public java.lang.String getPageToken() { * * *
-     * Required. A page token, received from a previous `ListUtilizationReports` call.
-     * Provide this to retrieve the subsequent page.
+     * Required. A page token, received from a previous `ListUtilizationReports`
+     * call. Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListUtilizationReports`
      * must match the call that provided the page token.
      * 
@@ -1165,8 +1165,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * Required. A page token, received from a previous `ListUtilizationReports` call.
-     * Provide this to retrieve the subsequent page.
+     * Required. A page token, received from a previous `ListUtilizationReports`
+     * call. Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListUtilizationReports`
      * must match the call that provided the page token.
      * 
@@ -1189,8 +1189,8 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * Required. A page token, received from a previous `ListUtilizationReports` call.
-     * Provide this to retrieve the subsequent page.
+     * Required. A page token, received from a previous `ListUtilizationReports`
+     * call. Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListUtilizationReports`
      * must match the call that provided the page token.
      * 
@@ -1209,8 +1209,8 @@ public Builder clearPageToken() { * * *
-     * Required. A page token, received from a previous `ListUtilizationReports` call.
-     * Provide this to retrieve the subsequent page.
+     * Required. A page token, received from a previous `ListUtilizationReports`
+     * call. Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListUtilizationReports`
      * must match the call that provided the page token.
      * 
diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListUtilizationReportsRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListUtilizationReportsRequestOrBuilder.java index c2d64dbdbd9a..6d7cc58a06a5 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListUtilizationReportsRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListUtilizationReportsRequestOrBuilder.java @@ -103,8 +103,8 @@ public interface ListUtilizationReportsRequestOrBuilder * * *
-   * Required. A page token, received from a previous `ListUtilizationReports` call.
-   * Provide this to retrieve the subsequent page.
+   * Required. A page token, received from a previous `ListUtilizationReports`
+   * call. Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListUtilizationReports`
    * must match the call that provided the page token.
    * 
@@ -118,8 +118,8 @@ public interface ListUtilizationReportsRequestOrBuilder * * *
-   * Required. A page token, received from a previous `ListUtilizationReports` call.
-   * Provide this to retrieve the subsequent page.
+   * Required. A page token, received from a previous `ListUtilizationReports`
+   * call. Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListUtilizationReports`
    * must match the call that provided the page token.
    * 
diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListUtilizationReportsResponse.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListUtilizationReportsResponse.java index 076c2012a543..b791037d8189 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListUtilizationReportsResponse.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListUtilizationReportsResponse.java @@ -233,8 +233,8 @@ public com.google.cloud.vmmigration.v1.UtilizationReportOrBuilder getUtilization * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -257,8 +257,8 @@ public java.lang.String getNextPageToken() { * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1157,8 +1157,8 @@ public com.google.cloud.vmmigration.v1.UtilizationReport.Builder addUtilizationR * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1180,8 +1180,8 @@ public java.lang.String getNextPageToken() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1203,8 +1203,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1225,8 +1225,8 @@ public Builder setNextPageToken(java.lang.String value) { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1243,8 +1243,8 @@ public Builder clearNextPageToken() { * * *
-     * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
+     * Output only. A token, which can be sent as `page_token` to retrieve the
+     * next page. If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListUtilizationReportsResponseOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListUtilizationReportsResponseOrBuilder.java index 26f02e2b1470..f2195a947248 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListUtilizationReportsResponseOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListUtilizationReportsResponseOrBuilder.java @@ -90,8 +90,8 @@ com.google.cloud.vmmigration.v1.UtilizationReportOrBuilder getUtilizationReports * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -103,8 +103,8 @@ com.google.cloud.vmmigration.v1.UtilizationReportOrBuilder getUtilizationReports * * *
-   * Output only. A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * Output only. A token, which can be sent as `page_token` to retrieve the
+   * next page. If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVm.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVm.java index 059b3d9bb095..39f73f4a6ba2 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVm.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVm.java @@ -45,6 +45,8 @@ private MigratingVm() { description_ = ""; state_ = 0; group_ = ""; + recentCloneJobs_ = java.util.Collections.emptyList(); + recentCutoverJobs_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -196,6 +198,18 @@ private MigratingVm( labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); break; } + case 138: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + recentCloneJobs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + recentCloneJobs_.add( + input.readMessage( + com.google.cloud.vmmigration.v1.CloneJob.parser(), extensionRegistry)); + break; + } case 146: { java.lang.String s = input.readStringRequireUtf8(); @@ -217,6 +231,18 @@ private MigratingVm( break; } + case 162: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + recentCutoverJobs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + recentCutoverJobs_.add( + input.readMessage( + com.google.cloud.vmmigration.v1.CutoverJob.parser(), extensionRegistry)); + break; + } case 178: { com.google.protobuf.Timestamp.Builder subBuilder = null; @@ -277,6 +303,12 @@ private MigratingVm( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + recentCloneJobs_ = java.util.Collections.unmodifiableList(recentCloneJobs_); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + recentCutoverJobs_ = java.util.Collections.unmodifiableList(recentCutoverJobs_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -1032,8 +1064,8 @@ public com.google.cloud.vmmigration.v1.SchedulePolicyOrBuilder getPolicyOrBuilde * * *
-   * Output only. The time the migrating VM was created (this refers to this resource and not
-   * to the time it was installed in the source).
+   * Output only. The time the migrating VM was created (this refers to this
+   * resource and not to the time it was installed in the source).
    * 
* * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1049,8 +1081,8 @@ public boolean hasCreateTime() { * * *
-   * Output only. The time the migrating VM was created (this refers to this resource and not
-   * to the time it was installed in the source).
+   * Output only. The time the migrating VM was created (this refers to this
+   * resource and not to the time it was installed in the source).
    * 
* * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1066,8 +1098,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-   * Output only. The time the migrating VM was created (this refers to this resource and not
-   * to the time it was installed in the source).
+   * Output only. The time the migrating VM was created (this refers to this
+   * resource and not to the time it was installed in the source).
    * 
* * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1133,8 +1165,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-   * Output only. The most updated snapshot created time in the source that finished
-   * replication.
+   * Output only. The most updated snapshot created time in the source that
+   * finished replication.
    * 
* * @@ -1151,8 +1183,8 @@ public boolean hasLastSync() { * * *
-   * Output only. The most updated snapshot created time in the source that finished
-   * replication.
+   * Output only. The most updated snapshot created time in the source that
+   * finished replication.
    * 
* * @@ -1171,8 +1203,8 @@ public com.google.cloud.vmmigration.v1.ReplicationSync getLastSync() { * * *
-   * Output only. The most updated snapshot created time in the source that finished
-   * replication.
+   * Output only. The most updated snapshot created time in the source that
+   * finished replication.
    * 
* * @@ -1279,7 +1311,8 @@ public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { * * *
-   * Output only. The percentage progress of the current running replication cycle.
+   * Output only. The percentage progress of the current running replication
+   * cycle.
    * 
* * @@ -1296,7 +1329,8 @@ public boolean hasCurrentSyncInfo() { * * *
-   * Output only. The percentage progress of the current running replication cycle.
+   * Output only. The percentage progress of the current running replication
+   * cycle.
    * 
* * @@ -1315,7 +1349,8 @@ public com.google.cloud.vmmigration.v1.ReplicationCycle getCurrentSyncInfo() { * * *
-   * Output only. The percentage progress of the current running replication cycle.
+   * Output only. The percentage progress of the current running replication
+   * cycle.
    * 
* * @@ -1333,8 +1368,8 @@ public com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder getCurrentSyncI * * *
-   * Output only. The group this migrating vm is included in, if any. The group is
-   * represented by the full path of the appropriate
+   * Output only. The group this migrating vm is included in, if any. The group
+   * is represented by the full path of the appropriate
    * [Group][google.cloud.vmmigration.v1.Group] resource.
    * 
* @@ -1360,8 +1395,8 @@ public java.lang.String getGroup() { * * *
-   * Output only. The group this migrating vm is included in, if any. The group is
-   * represented by the full path of the appropriate
+   * Output only. The group this migrating vm is included in, if any. The group
+   * is represented by the full path of the appropriate
    * [Group][google.cloud.vmmigration.v1.Group] resource.
    * 
* @@ -1482,14 +1517,113 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { return map.get(key); } + public static final int RECENT_CLONE_JOBS_FIELD_NUMBER = 17; + private java.util.List recentCloneJobs_; + /** + * + * + *
+   * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+   * performed on the migrating VM. This field holds the vm's last completed
+   * clone job and the vm's running clone job, if one exists.
+   * Note: To have this field populated you need to explicitly request it via
+   * the "view" parameter of the Get/List request.
+   * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getRecentCloneJobsList() { + return recentCloneJobs_; + } + /** + * + * + *
+   * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+   * performed on the migrating VM. This field holds the vm's last completed
+   * clone job and the vm's running clone job, if one exists.
+   * Note: To have this field populated you need to explicitly request it via
+   * the "view" parameter of the Get/List request.
+   * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getRecentCloneJobsOrBuilderList() { + return recentCloneJobs_; + } + /** + * + * + *
+   * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+   * performed on the migrating VM. This field holds the vm's last completed
+   * clone job and the vm's running clone job, if one exists.
+   * Note: To have this field populated you need to explicitly request it via
+   * the "view" parameter of the Get/List request.
+   * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getRecentCloneJobsCount() { + return recentCloneJobs_.size(); + } + /** + * + * + *
+   * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+   * performed on the migrating VM. This field holds the vm's last completed
+   * clone job and the vm's running clone job, if one exists.
+   * Note: To have this field populated you need to explicitly request it via
+   * the "view" parameter of the Get/List request.
+   * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.CloneJob getRecentCloneJobs(int index) { + return recentCloneJobs_.get(index); + } + /** + * + * + *
+   * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+   * performed on the migrating VM. This field holds the vm's last completed
+   * clone job and the vm's running clone job, if one exists.
+   * Note: To have this field populated you need to explicitly request it via
+   * the "view" parameter of the Get/List request.
+   * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.CloneJobOrBuilder getRecentCloneJobsOrBuilder(int index) { + return recentCloneJobs_.get(index); + } + public static final int ERROR_FIELD_NUMBER = 19; private com.google.rpc.Status error_; /** * * *
-   * Output only. Provides details on the state of the Migrating VM in case of an
-   * error in replication.
+   * Output only. Provides details on the state of the Migrating VM in case of
+   * an error in replication.
    * 
* * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1504,8 +1638,8 @@ public boolean hasError() { * * *
-   * Output only. Provides details on the state of the Migrating VM in case of an
-   * error in replication.
+   * Output only. Provides details on the state of the Migrating VM in case of
+   * an error in replication.
    * 
* * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1520,8 +1654,8 @@ public com.google.rpc.Status getError() { * * *
-   * Output only. Provides details on the state of the Migrating VM in case of an
-   * error in replication.
+   * Output only. Provides details on the state of the Migrating VM in case of
+   * an error in replication.
    * 
* * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1531,6 +1665,106 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { return getError(); } + public static final int RECENT_CUTOVER_JOBS_FIELD_NUMBER = 20; + private java.util.List recentCutoverJobs_; + /** + * + * + *
+   * Output only. The recent cutover jobs performed on the migrating VM.
+   * This field holds the vm's last completed cutover job and the vm's
+   * running cutover job, if one exists.
+   * Note: To have this field populated you need to explicitly request it via
+   * the "view" parameter of the Get/List request.
+   * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getRecentCutoverJobsList() { + return recentCutoverJobs_; + } + /** + * + * + *
+   * Output only. The recent cutover jobs performed on the migrating VM.
+   * This field holds the vm's last completed cutover job and the vm's
+   * running cutover job, if one exists.
+   * Note: To have this field populated you need to explicitly request it via
+   * the "view" parameter of the Get/List request.
+   * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getRecentCutoverJobsOrBuilderList() { + return recentCutoverJobs_; + } + /** + * + * + *
+   * Output only. The recent cutover jobs performed on the migrating VM.
+   * This field holds the vm's last completed cutover job and the vm's
+   * running cutover job, if one exists.
+   * Note: To have this field populated you need to explicitly request it via
+   * the "view" parameter of the Get/List request.
+   * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getRecentCutoverJobsCount() { + return recentCutoverJobs_.size(); + } + /** + * + * + *
+   * Output only. The recent cutover jobs performed on the migrating VM.
+   * This field holds the vm's last completed cutover job and the vm's
+   * running cutover job, if one exists.
+   * Note: To have this field populated you need to explicitly request it via
+   * the "view" parameter of the Get/List request.
+   * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.CutoverJob getRecentCutoverJobs(int index) { + return recentCutoverJobs_.get(index); + } + /** + * + * + *
+   * Output only. The recent cutover jobs performed on the migrating VM.
+   * This field holds the vm's last completed cutover job and the vm's
+   * running cutover job, if one exists.
+   * Note: To have this field populated you need to explicitly request it via
+   * the "view" parameter of the Get/List request.
+   * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.CutoverJobOrBuilder getRecentCutoverJobsOrBuilder( + int index) { + return recentCutoverJobs_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1574,12 +1808,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 16); + for (int i = 0; i < recentCloneJobs_.size(); i++) { + output.writeMessage(17, recentCloneJobs_.get(i)); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, displayName_); } if (error_ != null) { output.writeMessage(19, getError()); } + for (int i = 0; i < recentCutoverJobs_.size(); i++) { + output.writeMessage(20, recentCutoverJobs_.get(i)); + } if (stateTime_ != null) { output.writeMessage(22, getStateTime()); } @@ -1636,12 +1876,19 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, labels__); } + for (int i = 0; i < recentCloneJobs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, recentCloneJobs_.get(i)); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, displayName_); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getError()); } + for (int i = 0; i < recentCutoverJobs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(20, recentCutoverJobs_.get(i)); + } if (stateTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getStateTime()); } @@ -1700,10 +1947,12 @@ public boolean equals(final java.lang.Object obj) { } if (!getGroup().equals(other.getGroup())) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getRecentCloneJobsList().equals(other.getRecentCloneJobsList())) return false; if (hasError() != other.hasError()) return false; if (hasError()) { if (!getError().equals(other.getError())) return false; } + if (!getRecentCutoverJobsList().equals(other.getRecentCutoverJobsList())) return false; if (!getTargetVmDefaultsCase().equals(other.getTargetVmDefaultsCase())) return false; switch (targetVmDefaultsCase_) { case 26: @@ -1764,10 +2013,18 @@ public int hashCode() { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } + if (getRecentCloneJobsCount() > 0) { + hash = (37 * hash) + RECENT_CLONE_JOBS_FIELD_NUMBER; + hash = (53 * hash) + getRecentCloneJobsList().hashCode(); + } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } + if (getRecentCutoverJobsCount() > 0) { + hash = (37 * hash) + RECENT_CUTOVER_JOBS_FIELD_NUMBER; + hash = (53 * hash) + getRecentCutoverJobsList().hashCode(); + } switch (targetVmDefaultsCase_) { case 26: hash = (37 * hash) + COMPUTE_ENGINE_TARGET_DEFAULTS_FIELD_NUMBER; @@ -1936,7 +2193,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRecentCloneJobsFieldBuilder(); + getRecentCutoverJobsFieldBuilder(); + } } @java.lang.Override @@ -1991,12 +2251,24 @@ public Builder clear() { group_ = ""; internalGetMutableLabels().clear(); + if (recentCloneJobsBuilder_ == null) { + recentCloneJobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + recentCloneJobsBuilder_.clear(); + } if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } + if (recentCutoverJobsBuilder_ == null) { + recentCutoverJobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + recentCutoverJobsBuilder_.clear(); + } targetVmDefaultsCase_ = 0; targetVmDefaults_ = null; return this; @@ -2072,11 +2344,29 @@ public com.google.cloud.vmmigration.v1.MigratingVm buildPartial() { result.group_ = group_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); + if (recentCloneJobsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + recentCloneJobs_ = java.util.Collections.unmodifiableList(recentCloneJobs_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.recentCloneJobs_ = recentCloneJobs_; + } else { + result.recentCloneJobs_ = recentCloneJobsBuilder_.build(); + } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } + if (recentCutoverJobsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + recentCutoverJobs_ = java.util.Collections.unmodifiableList(recentCutoverJobs_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.recentCutoverJobs_ = recentCutoverJobs_; + } else { + result.recentCutoverJobs_ = recentCutoverJobsBuilder_.build(); + } result.targetVmDefaultsCase_ = targetVmDefaultsCase_; onBuilt(); return result; @@ -2169,9 +2459,63 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.MigratingVm other) { onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (recentCloneJobsBuilder_ == null) { + if (!other.recentCloneJobs_.isEmpty()) { + if (recentCloneJobs_.isEmpty()) { + recentCloneJobs_ = other.recentCloneJobs_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRecentCloneJobsIsMutable(); + recentCloneJobs_.addAll(other.recentCloneJobs_); + } + onChanged(); + } + } else { + if (!other.recentCloneJobs_.isEmpty()) { + if (recentCloneJobsBuilder_.isEmpty()) { + recentCloneJobsBuilder_.dispose(); + recentCloneJobsBuilder_ = null; + recentCloneJobs_ = other.recentCloneJobs_; + bitField0_ = (bitField0_ & ~0x00000002); + recentCloneJobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRecentCloneJobsFieldBuilder() + : null; + } else { + recentCloneJobsBuilder_.addAllMessages(other.recentCloneJobs_); + } + } + } if (other.hasError()) { mergeError(other.getError()); } + if (recentCutoverJobsBuilder_ == null) { + if (!other.recentCutoverJobs_.isEmpty()) { + if (recentCutoverJobs_.isEmpty()) { + recentCutoverJobs_ = other.recentCutoverJobs_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureRecentCutoverJobsIsMutable(); + recentCutoverJobs_.addAll(other.recentCutoverJobs_); + } + onChanged(); + } + } else { + if (!other.recentCutoverJobs_.isEmpty()) { + if (recentCutoverJobsBuilder_.isEmpty()) { + recentCutoverJobsBuilder_.dispose(); + recentCutoverJobsBuilder_ = null; + recentCutoverJobs_ = other.recentCutoverJobs_; + bitField0_ = (bitField0_ & ~0x00000004); + recentCutoverJobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRecentCutoverJobsFieldBuilder() + : null; + } else { + recentCutoverJobsBuilder_.addAllMessages(other.recentCutoverJobs_); + } + } + } switch (other.getTargetVmDefaultsCase()) { case COMPUTE_ENGINE_TARGET_DEFAULTS: { @@ -3095,8 +3439,8 @@ public com.google.cloud.vmmigration.v1.SchedulePolicyOrBuilder getPolicyOrBuilde * * *
-     * Output only. The time the migrating VM was created (this refers to this resource and not
-     * to the time it was installed in the source).
+     * Output only. The time the migrating VM was created (this refers to this
+     * resource and not to the time it was installed in the source).
      * 
* * @@ -3112,8 +3456,8 @@ public boolean hasCreateTime() { * * *
-     * Output only. The time the migrating VM was created (this refers to this resource and not
-     * to the time it was installed in the source).
+     * Output only. The time the migrating VM was created (this refers to this
+     * resource and not to the time it was installed in the source).
      * 
* * @@ -3135,8 +3479,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-     * Output only. The time the migrating VM was created (this refers to this resource and not
-     * to the time it was installed in the source).
+     * Output only. The time the migrating VM was created (this refers to this
+     * resource and not to the time it was installed in the source).
      * 
* * @@ -3160,8 +3504,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The time the migrating VM was created (this refers to this resource and not
-     * to the time it was installed in the source).
+     * Output only. The time the migrating VM was created (this refers to this
+     * resource and not to the time it was installed in the source).
      * 
* * @@ -3182,8 +3526,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. The time the migrating VM was created (this refers to this resource and not
-     * to the time it was installed in the source).
+     * Output only. The time the migrating VM was created (this refers to this
+     * resource and not to the time it was installed in the source).
      * 
* * @@ -3209,8 +3553,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The time the migrating VM was created (this refers to this resource and not
-     * to the time it was installed in the source).
+     * Output only. The time the migrating VM was created (this refers to this
+     * resource and not to the time it was installed in the source).
      * 
* * @@ -3232,8 +3576,8 @@ public Builder clearCreateTime() { * * *
-     * Output only. The time the migrating VM was created (this refers to this resource and not
-     * to the time it was installed in the source).
+     * Output only. The time the migrating VM was created (this refers to this
+     * resource and not to the time it was installed in the source).
      * 
* * @@ -3249,8 +3593,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * * *
-     * Output only. The time the migrating VM was created (this refers to this resource and not
-     * to the time it was installed in the source).
+     * Output only. The time the migrating VM was created (this refers to this
+     * resource and not to the time it was installed in the source).
      * 
* * @@ -3270,8 +3614,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * Output only. The time the migrating VM was created (this refers to this resource and not
-     * to the time it was installed in the source).
+     * Output only. The time the migrating VM was created (this refers to this
+     * resource and not to the time it was installed in the source).
      * 
* * @@ -3506,8 +3850,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-     * Output only. The most updated snapshot created time in the source that finished
-     * replication.
+     * Output only. The most updated snapshot created time in the source that
+     * finished replication.
      * 
* * @@ -3523,8 +3867,8 @@ public boolean hasLastSync() { * * *
-     * Output only. The most updated snapshot created time in the source that finished
-     * replication.
+     * Output only. The most updated snapshot created time in the source that
+     * finished replication.
      * 
* * @@ -3546,8 +3890,8 @@ public com.google.cloud.vmmigration.v1.ReplicationSync getLastSync() { * * *
-     * Output only. The most updated snapshot created time in the source that finished
-     * replication.
+     * Output only. The most updated snapshot created time in the source that
+     * finished replication.
      * 
* * @@ -3571,8 +3915,8 @@ public Builder setLastSync(com.google.cloud.vmmigration.v1.ReplicationSync value * * *
-     * Output only. The most updated snapshot created time in the source that finished
-     * replication.
+     * Output only. The most updated snapshot created time in the source that
+     * finished replication.
      * 
* * @@ -3594,8 +3938,8 @@ public Builder setLastSync( * * *
-     * Output only. The most updated snapshot created time in the source that finished
-     * replication.
+     * Output only. The most updated snapshot created time in the source that
+     * finished replication.
      * 
* * @@ -3623,8 +3967,8 @@ public Builder mergeLastSync(com.google.cloud.vmmigration.v1.ReplicationSync val * * *
-     * Output only. The most updated snapshot created time in the source that finished
-     * replication.
+     * Output only. The most updated snapshot created time in the source that
+     * finished replication.
      * 
* * @@ -3646,8 +3990,8 @@ public Builder clearLastSync() { * * *
-     * Output only. The most updated snapshot created time in the source that finished
-     * replication.
+     * Output only. The most updated snapshot created time in the source that
+     * finished replication.
      * 
* * @@ -3663,8 +4007,8 @@ public com.google.cloud.vmmigration.v1.ReplicationSync.Builder getLastSyncBuilde * * *
-     * Output only. The most updated snapshot created time in the source that finished
-     * replication.
+     * Output only. The most updated snapshot created time in the source that
+     * finished replication.
      * 
* * @@ -3684,8 +4028,8 @@ public com.google.cloud.vmmigration.v1.ReplicationSyncOrBuilder getLastSyncOrBui * * *
-     * Output only. The most updated snapshot created time in the source that finished
-     * replication.
+     * Output only. The most updated snapshot created time in the source that
+     * finished replication.
      * 
* * @@ -4019,7 +4363,8 @@ public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { * * *
-     * Output only. The percentage progress of the current running replication cycle.
+     * Output only. The percentage progress of the current running replication
+     * cycle.
      * 
* * @@ -4035,7 +4380,8 @@ public boolean hasCurrentSyncInfo() { * * *
-     * Output only. The percentage progress of the current running replication cycle.
+     * Output only. The percentage progress of the current running replication
+     * cycle.
      * 
* * @@ -4057,7 +4403,8 @@ public com.google.cloud.vmmigration.v1.ReplicationCycle getCurrentSyncInfo() { * * *
-     * Output only. The percentage progress of the current running replication cycle.
+     * Output only. The percentage progress of the current running replication
+     * cycle.
      * 
* * @@ -4081,7 +4428,8 @@ public Builder setCurrentSyncInfo(com.google.cloud.vmmigration.v1.ReplicationCyc * * *
-     * Output only. The percentage progress of the current running replication cycle.
+     * Output only. The percentage progress of the current running replication
+     * cycle.
      * 
* * @@ -4103,7 +4451,8 @@ public Builder setCurrentSyncInfo( * * *
-     * Output only. The percentage progress of the current running replication cycle.
+     * Output only. The percentage progress of the current running replication
+     * cycle.
      * 
* * @@ -4131,7 +4480,8 @@ public Builder mergeCurrentSyncInfo(com.google.cloud.vmmigration.v1.ReplicationC * * *
-     * Output only. The percentage progress of the current running replication cycle.
+     * Output only. The percentage progress of the current running replication
+     * cycle.
      * 
* * @@ -4153,7 +4503,8 @@ public Builder clearCurrentSyncInfo() { * * *
-     * Output only. The percentage progress of the current running replication cycle.
+     * Output only. The percentage progress of the current running replication
+     * cycle.
      * 
* * @@ -4169,7 +4520,8 @@ public com.google.cloud.vmmigration.v1.ReplicationCycle.Builder getCurrentSyncIn * * *
-     * Output only. The percentage progress of the current running replication cycle.
+     * Output only. The percentage progress of the current running replication
+     * cycle.
      * 
* * @@ -4189,7 +4541,8 @@ public com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder getCurrentSyncI * * *
-     * Output only. The percentage progress of the current running replication cycle.
+     * Output only. The percentage progress of the current running replication
+     * cycle.
      * 
* * @@ -4218,8 +4571,8 @@ public com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder getCurrentSyncI * * *
-     * Output only. The group this migrating vm is included in, if any. The group is
-     * represented by the full path of the appropriate
+     * Output only. The group this migrating vm is included in, if any. The group
+     * is represented by the full path of the appropriate
      * [Group][google.cloud.vmmigration.v1.Group] resource.
      * 
* @@ -4244,8 +4597,8 @@ public java.lang.String getGroup() { * * *
-     * Output only. The group this migrating vm is included in, if any. The group is
-     * represented by the full path of the appropriate
+     * Output only. The group this migrating vm is included in, if any. The group
+     * is represented by the full path of the appropriate
      * [Group][google.cloud.vmmigration.v1.Group] resource.
      * 
* @@ -4270,8 +4623,8 @@ public com.google.protobuf.ByteString getGroupBytes() { * * *
-     * Output only. The group this migrating vm is included in, if any. The group is
-     * represented by the full path of the appropriate
+     * Output only. The group this migrating vm is included in, if any. The group
+     * is represented by the full path of the appropriate
      * [Group][google.cloud.vmmigration.v1.Group] resource.
      * 
* @@ -4295,8 +4648,8 @@ public Builder setGroup(java.lang.String value) { * * *
-     * Output only. The group this migrating vm is included in, if any. The group is
-     * represented by the full path of the appropriate
+     * Output only. The group this migrating vm is included in, if any. The group
+     * is represented by the full path of the appropriate
      * [Group][google.cloud.vmmigration.v1.Group] resource.
      * 
* @@ -4316,8 +4669,8 @@ public Builder clearGroup() { * * *
-     * Output only. The group this migrating vm is included in, if any. The group is
-     * represented by the full path of the appropriate
+     * Output only. The group this migrating vm is included in, if any. The group
+     * is represented by the full path of the appropriate
      * [Group][google.cloud.vmmigration.v1.Group] resource.
      * 
* @@ -4497,174 +4850,637 @@ public Builder putAllLabels(java.util.Map va return this; } - private com.google.rpc.Status error_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorBuilder_; + private java.util.List recentCloneJobs_ = + java.util.Collections.emptyList(); + + private void ensureRecentCloneJobsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + recentCloneJobs_ = + new java.util.ArrayList(recentCloneJobs_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.CloneJob, + com.google.cloud.vmmigration.v1.CloneJob.Builder, + com.google.cloud.vmmigration.v1.CloneJobOrBuilder> + recentCloneJobsBuilder_; + /** * * *
-     * Output only. Provides details on the state of the Migrating VM in case of an
-     * error in replication.
+     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+     * performed on the migrating VM. This field holds the vm's last completed
+     * clone job and the vm's running clone job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
      * 
* - * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return Whether the error field is set. + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public boolean hasError() { - return errorBuilder_ != null || error_ != null; + public java.util.List getRecentCloneJobsList() { + if (recentCloneJobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(recentCloneJobs_); + } else { + return recentCloneJobsBuilder_.getMessageList(); + } } /** * * *
-     * Output only. Provides details on the state of the Migrating VM in case of an
-     * error in replication.
+     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+     * performed on the migrating VM. This field holds the vm's last completed
+     * clone job and the vm's running clone job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
      * 
* - * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getRecentCloneJobsCount() { + if (recentCloneJobsBuilder_ == null) { + return recentCloneJobs_.size(); + } else { + return recentCloneJobsBuilder_.getCount(); + } + } + /** * - * @return The error. + * + *
+     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+     * performed on the migrating VM. This field holds the vm's last completed
+     * clone job and the vm's running clone job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.Status getError() { - if (errorBuilder_ == null) { - return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + public com.google.cloud.vmmigration.v1.CloneJob getRecentCloneJobs(int index) { + if (recentCloneJobsBuilder_ == null) { + return recentCloneJobs_.get(index); } else { - return errorBuilder_.getMessage(); + return recentCloneJobsBuilder_.getMessage(index); } } /** * * *
-     * Output only. Provides details on the state of the Migrating VM in case of an
-     * error in replication.
+     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+     * performed on the migrating VM. This field holds the vm's last completed
+     * clone job and the vm's running clone job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
      * 
* - * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setError(com.google.rpc.Status value) { - if (errorBuilder_ == null) { + public Builder setRecentCloneJobs(int index, com.google.cloud.vmmigration.v1.CloneJob value) { + if (recentCloneJobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - error_ = value; + ensureRecentCloneJobsIsMutable(); + recentCloneJobs_.set(index, value); onChanged(); } else { - errorBuilder_.setMessage(value); + recentCloneJobsBuilder_.setMessage(index, value); } - return this; } /** * * *
-     * Output only. Provides details on the state of the Migrating VM in case of an
-     * error in replication.
+     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+     * performed on the migrating VM. This field holds the vm's last completed
+     * clone job and the vm's running clone job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
      * 
* - * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setError(com.google.rpc.Status.Builder builderForValue) { - if (errorBuilder_ == null) { - error_ = builderForValue.build(); + public Builder setRecentCloneJobs( + int index, com.google.cloud.vmmigration.v1.CloneJob.Builder builderForValue) { + if (recentCloneJobsBuilder_ == null) { + ensureRecentCloneJobsIsMutable(); + recentCloneJobs_.set(index, builderForValue.build()); onChanged(); } else { - errorBuilder_.setMessage(builderForValue.build()); + recentCloneJobsBuilder_.setMessage(index, builderForValue.build()); } - return this; } /** * * *
-     * Output only. Provides details on the state of the Migrating VM in case of an
-     * error in replication.
+     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+     * performed on the migrating VM. This field holds the vm's last completed
+     * clone job and the vm's running clone job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
      * 
* - * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeError(com.google.rpc.Status value) { - if (errorBuilder_ == null) { - if (error_ != null) { - error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); - } else { - error_ = value; + public Builder addRecentCloneJobs(com.google.cloud.vmmigration.v1.CloneJob value) { + if (recentCloneJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureRecentCloneJobsIsMutable(); + recentCloneJobs_.add(value); onChanged(); } else { - errorBuilder_.mergeFrom(value); + recentCloneJobsBuilder_.addMessage(value); } - return this; } /** * * *
-     * Output only. Provides details on the state of the Migrating VM in case of an
-     * error in replication.
+     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+     * performed on the migrating VM. This field holds the vm's last completed
+     * clone job and the vm's running clone job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
      * 
* - * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; + public Builder addRecentCloneJobs(int index, com.google.cloud.vmmigration.v1.CloneJob value) { + if (recentCloneJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecentCloneJobsIsMutable(); + recentCloneJobs_.add(index, value); onChanged(); } else { - error_ = null; - errorBuilder_ = null; + recentCloneJobsBuilder_.addMessage(index, value); } - return this; } /** * * *
-     * Output only. Provides details on the state of the Migrating VM in case of an
-     * error in replication.
+     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+     * performed on the migrating VM. This field holds the vm's last completed
+     * clone job and the vm's running clone job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
      * 
* - * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.Status.Builder getErrorBuilder() { - - onChanged(); - return getErrorFieldBuilder().getBuilder(); + public Builder addRecentCloneJobs( + com.google.cloud.vmmigration.v1.CloneJob.Builder builderForValue) { + if (recentCloneJobsBuilder_ == null) { + ensureRecentCloneJobsIsMutable(); + recentCloneJobs_.add(builderForValue.build()); + onChanged(); + } else { + recentCloneJobsBuilder_.addMessage(builderForValue.build()); + } + return this; } /** * * *
-     * Output only. Provides details on the state of the Migrating VM in case of an
-     * error in replication.
+     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+     * performed on the migrating VM. This field holds the vm's last completed
+     * clone job and the vm's running clone job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
      * 
* - * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - if (errorBuilder_ != null) { - return errorBuilder_.getMessageOrBuilder(); + public Builder addRecentCloneJobs( + int index, com.google.cloud.vmmigration.v1.CloneJob.Builder builderForValue) { + if (recentCloneJobsBuilder_ == null) { + ensureRecentCloneJobsIsMutable(); + recentCloneJobs_.add(index, builderForValue.build()); + onChanged(); } else { - return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + recentCloneJobsBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** * * *
-     * Output only. Provides details on the state of the Migrating VM in case of an
-     * error in replication.
+     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+     * performed on the migrating VM. This field holds the vm's last completed
+     * clone job and the vm's running clone job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
      * 
* - * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllRecentCloneJobs( + java.lang.Iterable values) { + if (recentCloneJobsBuilder_ == null) { + ensureRecentCloneJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recentCloneJobs_); + onChanged(); + } else { + recentCloneJobsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+     * performed on the migrating VM. This field holds the vm's last completed
+     * clone job and the vm's running clone job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRecentCloneJobs() { + if (recentCloneJobsBuilder_ == null) { + recentCloneJobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + recentCloneJobsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+     * performed on the migrating VM. This field holds the vm's last completed
+     * clone job and the vm's running clone job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeRecentCloneJobs(int index) { + if (recentCloneJobsBuilder_ == null) { + ensureRecentCloneJobsIsMutable(); + recentCloneJobs_.remove(index); + onChanged(); + } else { + recentCloneJobsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+     * performed on the migrating VM. This field holds the vm's last completed
+     * clone job and the vm's running clone job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.CloneJob.Builder getRecentCloneJobsBuilder(int index) { + return getRecentCloneJobsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+     * performed on the migrating VM. This field holds the vm's last completed
+     * clone job and the vm's running clone job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.CloneJobOrBuilder getRecentCloneJobsOrBuilder( + int index) { + if (recentCloneJobsBuilder_ == null) { + return recentCloneJobs_.get(index); + } else { + return recentCloneJobsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+     * performed on the migrating VM. This field holds the vm's last completed
+     * clone job and the vm's running clone job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRecentCloneJobsOrBuilderList() { + if (recentCloneJobsBuilder_ != null) { + return recentCloneJobsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(recentCloneJobs_); + } + } + /** + * + * + *
+     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+     * performed on the migrating VM. This field holds the vm's last completed
+     * clone job and the vm's running clone job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.CloneJob.Builder addRecentCloneJobsBuilder() { + return getRecentCloneJobsFieldBuilder() + .addBuilder(com.google.cloud.vmmigration.v1.CloneJob.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+     * performed on the migrating VM. This field holds the vm's last completed
+     * clone job and the vm's running clone job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.CloneJob.Builder addRecentCloneJobsBuilder(int index) { + return getRecentCloneJobsFieldBuilder() + .addBuilder(index, com.google.cloud.vmmigration.v1.CloneJob.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+     * performed on the migrating VM. This field holds the vm's last completed
+     * clone job and the vm's running clone job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRecentCloneJobsBuilderList() { + return getRecentCloneJobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.CloneJob, + com.google.cloud.vmmigration.v1.CloneJob.Builder, + com.google.cloud.vmmigration.v1.CloneJobOrBuilder> + getRecentCloneJobsFieldBuilder() { + if (recentCloneJobsBuilder_ == null) { + recentCloneJobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.CloneJob, + com.google.cloud.vmmigration.v1.CloneJob.Builder, + com.google.cloud.vmmigration.v1.CloneJobOrBuilder>( + recentCloneJobs_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + recentCloneJobs_ = null; + } + return recentCloneJobsBuilder_; + } + + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + /** + * + * + *
+     * Output only. Provides details on the state of the Migrating VM in case of
+     * an error in replication.
+     * 
+ * + * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return errorBuilder_ != null || error_ != null; + } + /** + * + * + *
+     * Output only. Provides details on the state of the Migrating VM in case of
+     * an error in replication.
+     * 
+ * + * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Provides details on the state of the Migrating VM in case of
+     * an error in replication.
+     * 
+ * + * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Provides details on the state of the Migrating VM in case of
+     * an error in replication.
+     * 
+ * + * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Provides details on the state of the Migrating VM in case of
+     * an error in replication.
+     * 
+ * + * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (error_ != null) { + error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + } else { + error_ = value; + } + onChanged(); + } else { + errorBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Provides details on the state of the Migrating VM in case of
+     * an error in replication.
+     * 
+ * + * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + error_ = null; + onChanged(); + } else { + error_ = null; + errorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Provides details on the state of the Migrating VM in case of
+     * an error in replication.
+     * 
+ * + * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Provides details on the state of the Migrating VM in case of
+     * an error in replication.
+     * 
+ * + * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + /** + * + * + *
+     * Output only. Provides details on the state of the Migrating VM in case of
+     * an error in replication.
+     * 
+ * + * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getErrorFieldBuilder() { @@ -4679,6 +5495,473 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { return errorBuilder_; } + private java.util.List recentCutoverJobs_ = + java.util.Collections.emptyList(); + + private void ensureRecentCutoverJobsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + recentCutoverJobs_ = + new java.util.ArrayList(recentCutoverJobs_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.CutoverJob, + com.google.cloud.vmmigration.v1.CutoverJob.Builder, + com.google.cloud.vmmigration.v1.CutoverJobOrBuilder> + recentCutoverJobsBuilder_; + + /** + * + * + *
+     * Output only. The recent cutover jobs performed on the migrating VM.
+     * This field holds the vm's last completed cutover job and the vm's
+     * running cutover job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getRecentCutoverJobsList() { + if (recentCutoverJobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(recentCutoverJobs_); + } else { + return recentCutoverJobsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. The recent cutover jobs performed on the migrating VM.
+     * This field holds the vm's last completed cutover job and the vm's
+     * running cutover job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getRecentCutoverJobsCount() { + if (recentCutoverJobsBuilder_ == null) { + return recentCutoverJobs_.size(); + } else { + return recentCutoverJobsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. The recent cutover jobs performed on the migrating VM.
+     * This field holds the vm's last completed cutover job and the vm's
+     * running cutover job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.CutoverJob getRecentCutoverJobs(int index) { + if (recentCutoverJobsBuilder_ == null) { + return recentCutoverJobs_.get(index); + } else { + return recentCutoverJobsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. The recent cutover jobs performed on the migrating VM.
+     * This field holds the vm's last completed cutover job and the vm's
+     * running cutover job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRecentCutoverJobs( + int index, com.google.cloud.vmmigration.v1.CutoverJob value) { + if (recentCutoverJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecentCutoverJobsIsMutable(); + recentCutoverJobs_.set(index, value); + onChanged(); + } else { + recentCutoverJobsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. The recent cutover jobs performed on the migrating VM.
+     * This field holds the vm's last completed cutover job and the vm's
+     * running cutover job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRecentCutoverJobs( + int index, com.google.cloud.vmmigration.v1.CutoverJob.Builder builderForValue) { + if (recentCutoverJobsBuilder_ == null) { + ensureRecentCutoverJobsIsMutable(); + recentCutoverJobs_.set(index, builderForValue.build()); + onChanged(); + } else { + recentCutoverJobsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The recent cutover jobs performed on the migrating VM.
+     * This field holds the vm's last completed cutover job and the vm's
+     * running cutover job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRecentCutoverJobs(com.google.cloud.vmmigration.v1.CutoverJob value) { + if (recentCutoverJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecentCutoverJobsIsMutable(); + recentCutoverJobs_.add(value); + onChanged(); + } else { + recentCutoverJobsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. The recent cutover jobs performed on the migrating VM.
+     * This field holds the vm's last completed cutover job and the vm's
+     * running cutover job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRecentCutoverJobs( + int index, com.google.cloud.vmmigration.v1.CutoverJob value) { + if (recentCutoverJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecentCutoverJobsIsMutable(); + recentCutoverJobs_.add(index, value); + onChanged(); + } else { + recentCutoverJobsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. The recent cutover jobs performed on the migrating VM.
+     * This field holds the vm's last completed cutover job and the vm's
+     * running cutover job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRecentCutoverJobs( + com.google.cloud.vmmigration.v1.CutoverJob.Builder builderForValue) { + if (recentCutoverJobsBuilder_ == null) { + ensureRecentCutoverJobsIsMutable(); + recentCutoverJobs_.add(builderForValue.build()); + onChanged(); + } else { + recentCutoverJobsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The recent cutover jobs performed on the migrating VM.
+     * This field holds the vm's last completed cutover job and the vm's
+     * running cutover job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRecentCutoverJobs( + int index, com.google.cloud.vmmigration.v1.CutoverJob.Builder builderForValue) { + if (recentCutoverJobsBuilder_ == null) { + ensureRecentCutoverJobsIsMutable(); + recentCutoverJobs_.add(index, builderForValue.build()); + onChanged(); + } else { + recentCutoverJobsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The recent cutover jobs performed on the migrating VM.
+     * This field holds the vm's last completed cutover job and the vm's
+     * running cutover job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllRecentCutoverJobs( + java.lang.Iterable values) { + if (recentCutoverJobsBuilder_ == null) { + ensureRecentCutoverJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recentCutoverJobs_); + onChanged(); + } else { + recentCutoverJobsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. The recent cutover jobs performed on the migrating VM.
+     * This field holds the vm's last completed cutover job and the vm's
+     * running cutover job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRecentCutoverJobs() { + if (recentCutoverJobsBuilder_ == null) { + recentCutoverJobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + recentCutoverJobsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. The recent cutover jobs performed on the migrating VM.
+     * This field holds the vm's last completed cutover job and the vm's
+     * running cutover job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeRecentCutoverJobs(int index) { + if (recentCutoverJobsBuilder_ == null) { + ensureRecentCutoverJobsIsMutable(); + recentCutoverJobs_.remove(index); + onChanged(); + } else { + recentCutoverJobsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. The recent cutover jobs performed on the migrating VM.
+     * This field holds the vm's last completed cutover job and the vm's
+     * running cutover job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.CutoverJob.Builder getRecentCutoverJobsBuilder( + int index) { + return getRecentCutoverJobsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. The recent cutover jobs performed on the migrating VM.
+     * This field holds the vm's last completed cutover job and the vm's
+     * running cutover job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.CutoverJobOrBuilder getRecentCutoverJobsOrBuilder( + int index) { + if (recentCutoverJobsBuilder_ == null) { + return recentCutoverJobs_.get(index); + } else { + return recentCutoverJobsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. The recent cutover jobs performed on the migrating VM.
+     * This field holds the vm's last completed cutover job and the vm's
+     * running cutover job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRecentCutoverJobsOrBuilderList() { + if (recentCutoverJobsBuilder_ != null) { + return recentCutoverJobsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(recentCutoverJobs_); + } + } + /** + * + * + *
+     * Output only. The recent cutover jobs performed on the migrating VM.
+     * This field holds the vm's last completed cutover job and the vm's
+     * running cutover job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.CutoverJob.Builder addRecentCutoverJobsBuilder() { + return getRecentCutoverJobsFieldBuilder() + .addBuilder(com.google.cloud.vmmigration.v1.CutoverJob.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. The recent cutover jobs performed on the migrating VM.
+     * This field holds the vm's last completed cutover job and the vm's
+     * running cutover job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.CutoverJob.Builder addRecentCutoverJobsBuilder( + int index) { + return getRecentCutoverJobsFieldBuilder() + .addBuilder(index, com.google.cloud.vmmigration.v1.CutoverJob.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. The recent cutover jobs performed on the migrating VM.
+     * This field holds the vm's last completed cutover job and the vm's
+     * running cutover job, if one exists.
+     * Note: To have this field populated you need to explicitly request it via
+     * the "view" parameter of the Get/List request.
+     * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRecentCutoverJobsBuilderList() { + return getRecentCutoverJobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.CutoverJob, + com.google.cloud.vmmigration.v1.CutoverJob.Builder, + com.google.cloud.vmmigration.v1.CutoverJobOrBuilder> + getRecentCutoverJobsFieldBuilder() { + if (recentCutoverJobsBuilder_ == null) { + recentCutoverJobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.CutoverJob, + com.google.cloud.vmmigration.v1.CutoverJob.Builder, + com.google.cloud.vmmigration.v1.CutoverJobOrBuilder>( + recentCutoverJobs_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + recentCutoverJobs_ = null; + } + return recentCutoverJobsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVmOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVmOrBuilder.java index 4263561823b1..31c206b094eb 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVmOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVmOrBuilder.java @@ -208,8 +208,8 @@ public interface MigratingVmOrBuilder * * *
-   * Output only. The time the migrating VM was created (this refers to this resource and not
-   * to the time it was installed in the source).
+   * Output only. The time the migrating VM was created (this refers to this
+   * resource and not to the time it was installed in the source).
    * 
* * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -222,8 +222,8 @@ public interface MigratingVmOrBuilder * * *
-   * Output only. The time the migrating VM was created (this refers to this resource and not
-   * to the time it was installed in the source).
+   * Output only. The time the migrating VM was created (this refers to this
+   * resource and not to the time it was installed in the source).
    * 
* * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -236,8 +236,8 @@ public interface MigratingVmOrBuilder * * *
-   * Output only. The time the migrating VM was created (this refers to this resource and not
-   * to the time it was installed in the source).
+   * Output only. The time the migrating VM was created (this refers to this
+   * resource and not to the time it was installed in the source).
    * 
* * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -287,8 +287,8 @@ public interface MigratingVmOrBuilder * * *
-   * Output only. The most updated snapshot created time in the source that finished
-   * replication.
+   * Output only. The most updated snapshot created time in the source that
+   * finished replication.
    * 
* * @@ -302,8 +302,8 @@ public interface MigratingVmOrBuilder * * *
-   * Output only. The most updated snapshot created time in the source that finished
-   * replication.
+   * Output only. The most updated snapshot created time in the source that
+   * finished replication.
    * 
* * @@ -317,8 +317,8 @@ public interface MigratingVmOrBuilder * * *
-   * Output only. The most updated snapshot created time in the source that finished
-   * replication.
+   * Output only. The most updated snapshot created time in the source that
+   * finished replication.
    * 
* * @@ -398,7 +398,8 @@ public interface MigratingVmOrBuilder * * *
-   * Output only. The percentage progress of the current running replication cycle.
+   * Output only. The percentage progress of the current running replication
+   * cycle.
    * 
* * @@ -412,7 +413,8 @@ public interface MigratingVmOrBuilder * * *
-   * Output only. The percentage progress of the current running replication cycle.
+   * Output only. The percentage progress of the current running replication
+   * cycle.
    * 
* * @@ -426,7 +428,8 @@ public interface MigratingVmOrBuilder * * *
-   * Output only. The percentage progress of the current running replication cycle.
+   * Output only. The percentage progress of the current running replication
+   * cycle.
    * 
* * @@ -439,8 +442,8 @@ public interface MigratingVmOrBuilder * * *
-   * Output only. The group this migrating vm is included in, if any. The group is
-   * represented by the full path of the appropriate
+   * Output only. The group this migrating vm is included in, if any. The group
+   * is represented by the full path of the appropriate
    * [Group][google.cloud.vmmigration.v1.Group] resource.
    * 
* @@ -455,8 +458,8 @@ public interface MigratingVmOrBuilder * * *
-   * Output only. The group this migrating vm is included in, if any. The group is
-   * represented by the full path of the appropriate
+   * Output only. The group this migrating vm is included in, if any. The group
+   * is represented by the full path of the appropriate
    * [Group][google.cloud.vmmigration.v1.Group] resource.
    * 
* @@ -531,8 +534,90 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. Provides details on the state of the Migrating VM in case of an
-   * error in replication.
+   * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+   * performed on the migrating VM. This field holds the vm's last completed
+   * clone job and the vm's running clone job, if one exists.
+   * Note: To have this field populated you need to explicitly request it via
+   * the "view" parameter of the Get/List request.
+   * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getRecentCloneJobsList(); + /** + * + * + *
+   * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+   * performed on the migrating VM. This field holds the vm's last completed
+   * clone job and the vm's running clone job, if one exists.
+   * Note: To have this field populated you need to explicitly request it via
+   * the "view" parameter of the Get/List request.
+   * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.CloneJob getRecentCloneJobs(int index); + /** + * + * + *
+   * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+   * performed on the migrating VM. This field holds the vm's last completed
+   * clone job and the vm's running clone job, if one exists.
+   * Note: To have this field populated you need to explicitly request it via
+   * the "view" parameter of the Get/List request.
+   * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getRecentCloneJobsCount(); + /** + * + * + *
+   * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+   * performed on the migrating VM. This field holds the vm's last completed
+   * clone job and the vm's running clone job, if one exists.
+   * Note: To have this field populated you need to explicitly request it via
+   * the "view" parameter of the Get/List request.
+   * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getRecentCloneJobsOrBuilderList(); + /** + * + * + *
+   * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+   * performed on the migrating VM. This field holds the vm's last completed
+   * clone job and the vm's running clone job, if one exists.
+   * Note: To have this field populated you need to explicitly request it via
+   * the "view" parameter of the Get/List request.
+   * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.CloneJobOrBuilder getRecentCloneJobsOrBuilder(int index); + + /** + * + * + *
+   * Output only. Provides details on the state of the Migrating VM in case of
+   * an error in replication.
    * 
* * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -544,8 +629,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. Provides details on the state of the Migrating VM in case of an
-   * error in replication.
+   * Output only. Provides details on the state of the Migrating VM in case of
+   * an error in replication.
    * 
* * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -557,13 +642,95 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. Provides details on the state of the Migrating VM in case of an
-   * error in replication.
+   * Output only. Provides details on the state of the Migrating VM in case of
+   * an error in replication.
    * 
* * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + /** + * + * + *
+   * Output only. The recent cutover jobs performed on the migrating VM.
+   * This field holds the vm's last completed cutover job and the vm's
+   * running cutover job, if one exists.
+   * Note: To have this field populated you need to explicitly request it via
+   * the "view" parameter of the Get/List request.
+   * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getRecentCutoverJobsList(); + /** + * + * + *
+   * Output only. The recent cutover jobs performed on the migrating VM.
+   * This field holds the vm's last completed cutover job and the vm's
+   * running cutover job, if one exists.
+   * Note: To have this field populated you need to explicitly request it via
+   * the "view" parameter of the Get/List request.
+   * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.CutoverJob getRecentCutoverJobs(int index); + /** + * + * + *
+   * Output only. The recent cutover jobs performed on the migrating VM.
+   * This field holds the vm's last completed cutover job and the vm's
+   * running cutover job, if one exists.
+   * Note: To have this field populated you need to explicitly request it via
+   * the "view" parameter of the Get/List request.
+   * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getRecentCutoverJobsCount(); + /** + * + * + *
+   * Output only. The recent cutover jobs performed on the migrating VM.
+   * This field holds the vm's last completed cutover job and the vm's
+   * running cutover job, if one exists.
+   * Note: To have this field populated you need to explicitly request it via
+   * the "view" parameter of the Get/List request.
+   * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getRecentCutoverJobsOrBuilderList(); + /** + * + * + *
+   * Output only. The recent cutover jobs performed on the migrating VM.
+   * This field holds the vm's last completed cutover job and the vm's
+   * running cutover job, if one exists.
+   * Note: To have this field populated you need to explicitly request it via
+   * the "view" parameter of the Get/List request.
+   * 
+ * + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.CutoverJobOrBuilder getRecentCutoverJobsOrBuilder(int index); + public com.google.cloud.vmmigration.v1.MigratingVm.TargetVmDefaultsCase getTargetVmDefaultsCase(); } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVmView.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVmView.java new file mode 100644 index 000000000000..de7a90e200b7 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVmView.java @@ -0,0 +1,180 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
+ * Controls the level of details of a Migrating VM.
+ * 
+ * + * Protobuf enum {@code google.cloud.vmmigration.v1.MigratingVmView} + */ +public enum MigratingVmView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * View is unspecified. The API will fallback to the default value.
+   * 
+ * + * MIGRATING_VM_VIEW_UNSPECIFIED = 0; + */ + MIGRATING_VM_VIEW_UNSPECIFIED(0), + /** + * + * + *
+   * Get the migrating VM basic details.
+   * The basic details do not include the recent clone jobs and recent cutover
+   * jobs lists.
+   * 
+ * + * MIGRATING_VM_VIEW_BASIC = 1; + */ + MIGRATING_VM_VIEW_BASIC(1), + /** + * + * + *
+   * Include everything.
+   * 
+ * + * MIGRATING_VM_VIEW_FULL = 2; + */ + MIGRATING_VM_VIEW_FULL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * View is unspecified. The API will fallback to the default value.
+   * 
+ * + * MIGRATING_VM_VIEW_UNSPECIFIED = 0; + */ + public static final int MIGRATING_VM_VIEW_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Get the migrating VM basic details.
+   * The basic details do not include the recent clone jobs and recent cutover
+   * jobs lists.
+   * 
+ * + * MIGRATING_VM_VIEW_BASIC = 1; + */ + public static final int MIGRATING_VM_VIEW_BASIC_VALUE = 1; + /** + * + * + *
+   * Include everything.
+   * 
+ * + * MIGRATING_VM_VIEW_FULL = 2; + */ + public static final int MIGRATING_VM_VIEW_FULL_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 MigratingVmView 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 MigratingVmView forNumber(int value) { + switch (value) { + case 0: + return MIGRATING_VM_VIEW_UNSPECIFIED; + case 1: + return MIGRATING_VM_VIEW_BASIC; + case 2: + return MIGRATING_VM_VIEW_FULL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MigratingVmView findValueByNumber(int number) { + return MigratingVmView.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.vmmigration.v1.VmMigrationProto.getDescriptor().getEnumTypes().get(1); + } + + private static final MigratingVmView[] VALUES = values(); + + public static MigratingVmView 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 MigratingVmView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.MigratingVmView) +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigrationError.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigrationError.java index 143b1923850b..da2fc5c037ee 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigrationError.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigrationError.java @@ -277,6 +277,16 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * UTILIZATION_REPORT_ERROR = 8; */ UTILIZATION_REPORT_ERROR(8), + /** + * + * + *
+     * Migrate for Compute encountered an error during appliance upgrade.
+     * 
+ * + * APPLIANCE_UPGRADE_ERROR = 9; + */ + APPLIANCE_UPGRADE_ERROR(9), UNRECOGNIZED(-1), ; @@ -372,6 +382,16 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * UTILIZATION_REPORT_ERROR = 8; */ public static final int UTILIZATION_REPORT_ERROR_VALUE = 8; + /** + * + * + *
+     * Migrate for Compute encountered an error during appliance upgrade.
+     * 
+ * + * APPLIANCE_UPGRADE_ERROR = 9; + */ + public static final int APPLIANCE_UPGRADE_ERROR_VALUE = 9; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -415,6 +435,8 @@ public static ErrorCode forNumber(int value) { return CUTOVER_ERROR; case 8: return UTILIZATION_REPORT_ERROR; + case 9: + return APPLIANCE_UPGRADE_ERROR; default: return null; } @@ -622,7 +644,8 @@ public com.google.rpc.LocalizedMessageOrBuilder getActionItemOrBuilder() { * * *
-   * Output only. URL(s) pointing to additional information on handling the current error.
+   * Output only. URL(s) pointing to additional information on handling the
+   * current error.
    * 
* * @@ -637,7 +660,8 @@ public java.util.List getHelpLinksList() { * * *
-   * Output only. URL(s) pointing to additional information on handling the current error.
+   * Output only. URL(s) pointing to additional information on handling the
+   * current error.
    * 
* * @@ -652,7 +676,8 @@ public java.util.List getHelpLinksO * * *
-   * Output only. URL(s) pointing to additional information on handling the current error.
+   * Output only. URL(s) pointing to additional information on handling the
+   * current error.
    * 
* * @@ -667,7 +692,8 @@ public int getHelpLinksCount() { * * *
-   * Output only. URL(s) pointing to additional information on handling the current error.
+   * Output only. URL(s) pointing to additional information on handling the
+   * current error.
    * 
* * @@ -682,7 +708,8 @@ public com.google.rpc.Help.Link getHelpLinks(int index) { * * *
-   * Output only. URL(s) pointing to additional information on handling the current error.
+   * Output only. URL(s) pointing to additional information on handling the
+   * current error.
    * 
* * @@ -1734,7 +1761,8 @@ private void ensureHelpLinksIsMutable() { * * *
-     * Output only. URL(s) pointing to additional information on handling the current error.
+     * Output only. URL(s) pointing to additional information on handling the
+     * current error.
      * 
* * @@ -1752,7 +1780,8 @@ public java.util.List getHelpLinksList() { * * *
-     * Output only. URL(s) pointing to additional information on handling the current error.
+     * Output only. URL(s) pointing to additional information on handling the
+     * current error.
      * 
* * @@ -1770,7 +1799,8 @@ public int getHelpLinksCount() { * * *
-     * Output only. URL(s) pointing to additional information on handling the current error.
+     * Output only. URL(s) pointing to additional information on handling the
+     * current error.
      * 
* * @@ -1788,7 +1818,8 @@ public com.google.rpc.Help.Link getHelpLinks(int index) { * * *
-     * Output only. URL(s) pointing to additional information on handling the current error.
+     * Output only. URL(s) pointing to additional information on handling the
+     * current error.
      * 
* * @@ -1812,7 +1843,8 @@ public Builder setHelpLinks(int index, com.google.rpc.Help.Link value) { * * *
-     * Output only. URL(s) pointing to additional information on handling the current error.
+     * Output only. URL(s) pointing to additional information on handling the
+     * current error.
      * 
* * @@ -1833,7 +1865,8 @@ public Builder setHelpLinks(int index, com.google.rpc.Help.Link.Builder builderF * * *
-     * Output only. URL(s) pointing to additional information on handling the current error.
+     * Output only. URL(s) pointing to additional information on handling the
+     * current error.
      * 
* * @@ -1857,7 +1890,8 @@ public Builder addHelpLinks(com.google.rpc.Help.Link value) { * * *
-     * Output only. URL(s) pointing to additional information on handling the current error.
+     * Output only. URL(s) pointing to additional information on handling the
+     * current error.
      * 
* * @@ -1881,7 +1915,8 @@ public Builder addHelpLinks(int index, com.google.rpc.Help.Link value) { * * *
-     * Output only. URL(s) pointing to additional information on handling the current error.
+     * Output only. URL(s) pointing to additional information on handling the
+     * current error.
      * 
* * @@ -1902,7 +1937,8 @@ public Builder addHelpLinks(com.google.rpc.Help.Link.Builder builderForValue) { * * *
-     * Output only. URL(s) pointing to additional information on handling the current error.
+     * Output only. URL(s) pointing to additional information on handling the
+     * current error.
      * 
* * @@ -1923,7 +1959,8 @@ public Builder addHelpLinks(int index, com.google.rpc.Help.Link.Builder builderF * * *
-     * Output only. URL(s) pointing to additional information on handling the current error.
+     * Output only. URL(s) pointing to additional information on handling the
+     * current error.
      * 
* * @@ -1944,7 +1981,8 @@ public Builder addAllHelpLinks(java.lang.Iterable - * Output only. URL(s) pointing to additional information on handling the current error. + * Output only. URL(s) pointing to additional information on handling the + * current error. *
* * @@ -1965,7 +2003,8 @@ public Builder clearHelpLinks() { * * *
-     * Output only. URL(s) pointing to additional information on handling the current error.
+     * Output only. URL(s) pointing to additional information on handling the
+     * current error.
      * 
* * @@ -1986,7 +2025,8 @@ public Builder removeHelpLinks(int index) { * * *
-     * Output only. URL(s) pointing to additional information on handling the current error.
+     * Output only. URL(s) pointing to additional information on handling the
+     * current error.
      * 
* * @@ -2000,7 +2040,8 @@ public com.google.rpc.Help.Link.Builder getHelpLinksBuilder(int index) { * * *
-     * Output only. URL(s) pointing to additional information on handling the current error.
+     * Output only. URL(s) pointing to additional information on handling the
+     * current error.
      * 
* * @@ -2018,7 +2059,8 @@ public com.google.rpc.Help.LinkOrBuilder getHelpLinksOrBuilder(int index) { * * *
-     * Output only. URL(s) pointing to additional information on handling the current error.
+     * Output only. URL(s) pointing to additional information on handling the
+     * current error.
      * 
* * @@ -2036,7 +2078,8 @@ public java.util.List getHelpLinksO * * *
-     * Output only. URL(s) pointing to additional information on handling the current error.
+     * Output only. URL(s) pointing to additional information on handling the
+     * current error.
      * 
* * @@ -2050,7 +2093,8 @@ public com.google.rpc.Help.Link.Builder addHelpLinksBuilder() { * * *
-     * Output only. URL(s) pointing to additional information on handling the current error.
+     * Output only. URL(s) pointing to additional information on handling the
+     * current error.
      * 
* * @@ -2065,7 +2109,8 @@ public com.google.rpc.Help.Link.Builder addHelpLinksBuilder(int index) { * * *
-     * Output only. URL(s) pointing to additional information on handling the current error.
+     * Output only. URL(s) pointing to additional information on handling the
+     * current error.
      * 
* * diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigrationErrorOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigrationErrorOrBuilder.java index 6ef81eab6314..75e9d6bd7153 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigrationErrorOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigrationErrorOrBuilder.java @@ -138,7 +138,8 @@ public interface MigrationErrorOrBuilder * * *
-   * Output only. URL(s) pointing to additional information on handling the current error.
+   * Output only. URL(s) pointing to additional information on handling the
+   * current error.
    * 
* * @@ -150,7 +151,8 @@ public interface MigrationErrorOrBuilder * * *
-   * Output only. URL(s) pointing to additional information on handling the current error.
+   * Output only. URL(s) pointing to additional information on handling the
+   * current error.
    * 
* * @@ -162,7 +164,8 @@ public interface MigrationErrorOrBuilder * * *
-   * Output only. URL(s) pointing to additional information on handling the current error.
+   * Output only. URL(s) pointing to additional information on handling the
+   * current error.
    * 
* * @@ -174,7 +177,8 @@ public interface MigrationErrorOrBuilder * * *
-   * Output only. URL(s) pointing to additional information on handling the current error.
+   * Output only. URL(s) pointing to additional information on handling the
+   * current error.
    * 
* * @@ -186,7 +190,8 @@ public interface MigrationErrorOrBuilder * * *
-   * Output only. URL(s) pointing to additional information on handling the current error.
+   * Output only. URL(s) pointing to additional information on handling the
+   * current error.
    * 
* * diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/OperationMetadata.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/OperationMetadata.java index 27d5af2b6a03..789cf24af021 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/OperationMetadata.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/OperationMetadata.java @@ -425,8 +425,9 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-   * corresponding to `Code.CANCELLED`.
+   * have [Operation.error][] value with a
+   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+   * `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1638,8 +1639,9 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1656,8 +1658,9 @@ public boolean getRequestedCancellation() { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1677,8 +1680,9 @@ public Builder setRequestedCancellation(boolean value) { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/OperationMetadataOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/OperationMetadataOrBuilder.java index ee6e8d030908..92048fa60e33 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/OperationMetadataOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/OperationMetadataOrBuilder.java @@ -180,8 +180,9 @@ public interface OperationMetadataOrBuilder *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-   * corresponding to `Code.CANCELLED`.
+   * have [Operation.error][] value with a
+   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+   * `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/TargetProject.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/TargetProject.java index c1e73375db65..b3d89b06b965 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/TargetProject.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/TargetProject.java @@ -166,10 +166,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The name of the target project.
+   * Output only. The name of the target project.
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -189,10 +189,10 @@ public java.lang.String getName() { * * *
-   * The name of the target project.
+   * Output only. The name of the target project.
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -313,8 +313,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * Output only. The time this target project resource was created (not related to when the
-   * Compute Engine project it points to was created).
+   * Output only. The time this target project resource was created (not related
+   * to when the Compute Engine project it points to was created).
    * 
* * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -330,8 +330,8 @@ public boolean hasCreateTime() { * * *
-   * Output only. The time this target project resource was created (not related to when the
-   * Compute Engine project it points to was created).
+   * Output only. The time this target project resource was created (not related
+   * to when the Compute Engine project it points to was created).
    * 
* * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -347,8 +347,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-   * Output only. The time this target project resource was created (not related to when the
-   * Compute Engine project it points to was created).
+   * Output only. The time this target project resource was created (not related
+   * to when the Compute Engine project it points to was created).
    * 
* * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -818,10 +818,10 @@ public Builder mergeFrom( * * *
-     * The name of the target project.
+     * Output only. The name of the target project.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -840,10 +840,10 @@ public java.lang.String getName() { * * *
-     * The name of the target project.
+     * Output only. The name of the target project.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -862,10 +862,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The name of the target project.
+     * Output only. The name of the target project.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The name to set. * @return This builder for chaining. @@ -883,10 +883,10 @@ public Builder setName(java.lang.String value) { * * *
-     * The name of the target project.
+     * Output only. The name of the target project.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -900,10 +900,10 @@ public Builder clearName() { * * *
-     * The name of the target project.
+     * Output only. The name of the target project.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -1141,8 +1141,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. The time this target project resource was created (not related to when the
-     * Compute Engine project it points to was created).
+     * Output only. The time this target project resource was created (not related
+     * to when the Compute Engine project it points to was created).
      * 
* * @@ -1158,8 +1158,8 @@ public boolean hasCreateTime() { * * *
-     * Output only. The time this target project resource was created (not related to when the
-     * Compute Engine project it points to was created).
+     * Output only. The time this target project resource was created (not related
+     * to when the Compute Engine project it points to was created).
      * 
* * @@ -1181,8 +1181,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-     * Output only. The time this target project resource was created (not related to when the
-     * Compute Engine project it points to was created).
+     * Output only. The time this target project resource was created (not related
+     * to when the Compute Engine project it points to was created).
      * 
* * @@ -1206,8 +1206,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The time this target project resource was created (not related to when the
-     * Compute Engine project it points to was created).
+     * Output only. The time this target project resource was created (not related
+     * to when the Compute Engine project it points to was created).
      * 
* * @@ -1228,8 +1228,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. The time this target project resource was created (not related to when the
-     * Compute Engine project it points to was created).
+     * Output only. The time this target project resource was created (not related
+     * to when the Compute Engine project it points to was created).
      * 
* * @@ -1255,8 +1255,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The time this target project resource was created (not related to when the
-     * Compute Engine project it points to was created).
+     * Output only. The time this target project resource was created (not related
+     * to when the Compute Engine project it points to was created).
      * 
* * @@ -1278,8 +1278,8 @@ public Builder clearCreateTime() { * * *
-     * Output only. The time this target project resource was created (not related to when the
-     * Compute Engine project it points to was created).
+     * Output only. The time this target project resource was created (not related
+     * to when the Compute Engine project it points to was created).
      * 
* * @@ -1295,8 +1295,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * * *
-     * Output only. The time this target project resource was created (not related to when the
-     * Compute Engine project it points to was created).
+     * Output only. The time this target project resource was created (not related
+     * to when the Compute Engine project it points to was created).
      * 
* * @@ -1316,8 +1316,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * Output only. The time this target project resource was created (not related to when the
-     * Compute Engine project it points to was created).
+     * Output only. The time this target project resource was created (not related
+     * to when the Compute Engine project it points to was created).
      * 
* * diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/TargetProjectOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/TargetProjectOrBuilder.java index e410927caa83..e4a6c640398a 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/TargetProjectOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/TargetProjectOrBuilder.java @@ -27,10 +27,10 @@ public interface TargetProjectOrBuilder * * *
-   * The name of the target project.
+   * Output only. The name of the target project.
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -39,10 +39,10 @@ public interface TargetProjectOrBuilder * * *
-   * The name of the target project.
+   * Output only. The name of the target project.
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -102,8 +102,8 @@ public interface TargetProjectOrBuilder * * *
-   * Output only. The time this target project resource was created (not related to when the
-   * Compute Engine project it points to was created).
+   * Output only. The time this target project resource was created (not related
+   * to when the Compute Engine project it points to was created).
    * 
* * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -116,8 +116,8 @@ public interface TargetProjectOrBuilder * * *
-   * Output only. The time this target project resource was created (not related to when the
-   * Compute Engine project it points to was created).
+   * Output only. The time this target project resource was created (not related
+   * to when the Compute Engine project it points to was created).
    * 
* * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -130,8 +130,8 @@ public interface TargetProjectOrBuilder * * *
-   * Output only. The time this target project resource was created (not related to when the
-   * Compute Engine project it points to was created).
+   * Output only. The time this target project resource was created (not related
+   * to when the Compute Engine project it points to was created).
    * 
* * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeApplianceRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeApplianceRequest.java new file mode 100644 index 000000000000..e64674af23cb --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeApplianceRequest.java @@ -0,0 +1,902 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
+ * Request message for 'UpgradeAppliance' request.
+ * 
+ * + * Protobuf type {@code google.cloud.vmmigration.v1.UpgradeApplianceRequest} + */ +public final class UpgradeApplianceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.UpgradeApplianceRequest) + UpgradeApplianceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpgradeApplianceRequest.newBuilder() to construct. + private UpgradeApplianceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpgradeApplianceRequest() { + datacenterConnector_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpgradeApplianceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpgradeApplianceRequest( + 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(); + + datacenterConnector_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = 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.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_UpgradeApplianceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_UpgradeApplianceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.UpgradeApplianceRequest.class, + com.google.cloud.vmmigration.v1.UpgradeApplianceRequest.Builder.class); + } + + public static final int DATACENTER_CONNECTOR_FIELD_NUMBER = 1; + private volatile java.lang.Object datacenterConnector_; + /** + * + * + *
+   * Required. The DatacenterConnector name.
+   * 
+ * + * + * string datacenter_connector = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The datacenterConnector. + */ + @java.lang.Override + public java.lang.String getDatacenterConnector() { + java.lang.Object ref = datacenterConnector_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datacenterConnector_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The DatacenterConnector name.
+   * 
+ * + * + * string datacenter_connector = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for datacenterConnector. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatacenterConnectorBytes() { + java.lang.Object ref = datacenterConnector_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datacenterConnector_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and t
+   * he request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and t
+   * he request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(datacenterConnector_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datacenterConnector_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + 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(datacenterConnector_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, datacenterConnector_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += unknownFields.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.vmmigration.v1.UpgradeApplianceRequest)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.UpgradeApplianceRequest other = + (com.google.cloud.vmmigration.v1.UpgradeApplianceRequest) obj; + + if (!getDatacenterConnector().equals(other.getDatacenterConnector())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATACENTER_CONNECTOR_FIELD_NUMBER; + hash = (53 * hash) + getDatacenterConnector().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.UpgradeApplianceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.UpgradeApplianceRequest 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.vmmigration.v1.UpgradeApplianceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.UpgradeApplianceRequest 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.vmmigration.v1.UpgradeApplianceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.UpgradeApplianceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.UpgradeApplianceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.UpgradeApplianceRequest parseFrom( + 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.vmmigration.v1.UpgradeApplianceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.UpgradeApplianceRequest parseDelimitedFrom( + 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.vmmigration.v1.UpgradeApplianceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.UpgradeApplianceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.vmmigration.v1.UpgradeApplianceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for 'UpgradeAppliance' request.
+   * 
+ * + * Protobuf type {@code google.cloud.vmmigration.v1.UpgradeApplianceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.UpgradeApplianceRequest) + com.google.cloud.vmmigration.v1.UpgradeApplianceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_UpgradeApplianceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_UpgradeApplianceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.UpgradeApplianceRequest.class, + com.google.cloud.vmmigration.v1.UpgradeApplianceRequest.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.UpgradeApplianceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + datacenterConnector_ = ""; + + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_UpgradeApplianceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.UpgradeApplianceRequest getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.UpgradeApplianceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.UpgradeApplianceRequest build() { + com.google.cloud.vmmigration.v1.UpgradeApplianceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.UpgradeApplianceRequest buildPartial() { + com.google.cloud.vmmigration.v1.UpgradeApplianceRequest result = + new com.google.cloud.vmmigration.v1.UpgradeApplianceRequest(this); + result.datacenterConnector_ = datacenterConnector_; + result.requestId_ = requestId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor 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.vmmigration.v1.UpgradeApplianceRequest) { + return mergeFrom((com.google.cloud.vmmigration.v1.UpgradeApplianceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.UpgradeApplianceRequest other) { + if (other == com.google.cloud.vmmigration.v1.UpgradeApplianceRequest.getDefaultInstance()) + return this; + if (!other.getDatacenterConnector().isEmpty()) { + datacenterConnector_ = other.datacenterConnector_; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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.vmmigration.v1.UpgradeApplianceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.vmmigration.v1.UpgradeApplianceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object datacenterConnector_ = ""; + /** + * + * + *
+     * Required. The DatacenterConnector name.
+     * 
+ * + * + * string datacenter_connector = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The datacenterConnector. + */ + public java.lang.String getDatacenterConnector() { + java.lang.Object ref = datacenterConnector_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datacenterConnector_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The DatacenterConnector name.
+     * 
+ * + * + * string datacenter_connector = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for datacenterConnector. + */ + public com.google.protobuf.ByteString getDatacenterConnectorBytes() { + java.lang.Object ref = datacenterConnector_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datacenterConnector_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The DatacenterConnector name.
+     * 
+ * + * + * string datacenter_connector = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The datacenterConnector to set. + * @return This builder for chaining. + */ + public Builder setDatacenterConnector(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + datacenterConnector_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The DatacenterConnector name.
+     * 
+ * + * + * string datacenter_connector = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDatacenterConnector() { + + datacenterConnector_ = getDefaultInstance().getDatacenterConnector(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The DatacenterConnector name.
+     * 
+ * + * + * string datacenter_connector = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for datacenterConnector to set. + * @return This builder for chaining. + */ + public Builder setDatacenterConnectorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + datacenterConnector_ = value; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and t
+     * he request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and t
+     * he request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and t
+     * he request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and t
+     * he request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and t
+     * he request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = 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.vmmigration.v1.UpgradeApplianceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.UpgradeApplianceRequest) + private static final com.google.cloud.vmmigration.v1.UpgradeApplianceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.UpgradeApplianceRequest(); + } + + public static com.google.cloud.vmmigration.v1.UpgradeApplianceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeApplianceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpgradeApplianceRequest(input, extensionRegistry); + } + }; + + 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.vmmigration.v1.UpgradeApplianceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeApplianceRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeApplianceRequestOrBuilder.java new file mode 100644 index 000000000000..026251812a27 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeApplianceRequestOrBuilder.java @@ -0,0 +1,99 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +package com.google.cloud.vmmigration.v1; + +public interface UpgradeApplianceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.UpgradeApplianceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The DatacenterConnector name.
+   * 
+ * + * + * string datacenter_connector = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The datacenterConnector. + */ + java.lang.String getDatacenterConnector(); + /** + * + * + *
+   * Required. The DatacenterConnector name.
+   * 
+ * + * + * string datacenter_connector = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for datacenterConnector. + */ + com.google.protobuf.ByteString getDatacenterConnectorBytes(); + + /** + * + * + *
+   * A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and t
+   * he request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and t
+   * he request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeApplianceResponse.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeApplianceResponse.java new file mode 100644 index 000000000000..d3487040cd4a --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeApplianceResponse.java @@ -0,0 +1,459 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
+ * Response message for 'UpgradeAppliance' request.
+ * 
+ * + * Protobuf type {@code google.cloud.vmmigration.v1.UpgradeApplianceResponse} + */ +public final class UpgradeApplianceResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.UpgradeApplianceResponse) + UpgradeApplianceResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpgradeApplianceResponse.newBuilder() to construct. + private UpgradeApplianceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpgradeApplianceResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpgradeApplianceResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpgradeApplianceResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (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.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_UpgradeApplianceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_UpgradeApplianceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.UpgradeApplianceResponse.class, + com.google.cloud.vmmigration.v1.UpgradeApplianceResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.UpgradeApplianceResponse)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.UpgradeApplianceResponse other = + (com.google.cloud.vmmigration.v1.UpgradeApplianceResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.UpgradeApplianceResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.UpgradeApplianceResponse 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.vmmigration.v1.UpgradeApplianceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.UpgradeApplianceResponse 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.vmmigration.v1.UpgradeApplianceResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.UpgradeApplianceResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.UpgradeApplianceResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.UpgradeApplianceResponse parseFrom( + 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.vmmigration.v1.UpgradeApplianceResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.UpgradeApplianceResponse parseDelimitedFrom( + 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.vmmigration.v1.UpgradeApplianceResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.UpgradeApplianceResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.vmmigration.v1.UpgradeApplianceResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for 'UpgradeAppliance' request.
+   * 
+ * + * Protobuf type {@code google.cloud.vmmigration.v1.UpgradeApplianceResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.UpgradeApplianceResponse) + com.google.cloud.vmmigration.v1.UpgradeApplianceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_UpgradeApplianceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_UpgradeApplianceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.UpgradeApplianceResponse.class, + com.google.cloud.vmmigration.v1.UpgradeApplianceResponse.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.UpgradeApplianceResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_UpgradeApplianceResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.UpgradeApplianceResponse getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.UpgradeApplianceResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.UpgradeApplianceResponse build() { + com.google.cloud.vmmigration.v1.UpgradeApplianceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.UpgradeApplianceResponse buildPartial() { + com.google.cloud.vmmigration.v1.UpgradeApplianceResponse result = + new com.google.cloud.vmmigration.v1.UpgradeApplianceResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.UpgradeApplianceResponse) { + return mergeFrom((com.google.cloud.vmmigration.v1.UpgradeApplianceResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.UpgradeApplianceResponse other) { + if (other == com.google.cloud.vmmigration.v1.UpgradeApplianceResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.vmmigration.v1.UpgradeApplianceResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.vmmigration.v1.UpgradeApplianceResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.UpgradeApplianceResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.UpgradeApplianceResponse) + private static final com.google.cloud.vmmigration.v1.UpgradeApplianceResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.UpgradeApplianceResponse(); + } + + public static com.google.cloud.vmmigration.v1.UpgradeApplianceResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeApplianceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpgradeApplianceResponse(input, extensionRegistry); + } + }; + + 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.vmmigration.v1.UpgradeApplianceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeApplianceResponseOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeApplianceResponseOrBuilder.java new file mode 100644 index 000000000000..d9de2fcf070b --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeApplianceResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +package com.google.cloud.vmmigration.v1; + +public interface UpgradeApplianceResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.UpgradeApplianceResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeStatus.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeStatus.java new file mode 100644 index 000000000000..34aaa4513379 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeStatus.java @@ -0,0 +1,1679 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
+ * UpgradeStatus contains information about upgradeAppliance operation.
+ * 
+ * + * Protobuf type {@code google.cloud.vmmigration.v1.UpgradeStatus} + */ +public final class UpgradeStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.UpgradeStatus) + UpgradeStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpgradeStatus.newBuilder() to construct. + private UpgradeStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpgradeStatus() { + version_ = ""; + state_ = 0; + previousVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpgradeStatus(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpgradeStatus( + 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(); + + version_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 26: + { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + previousVersion_ = 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.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_UpgradeStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_UpgradeStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.UpgradeStatus.class, + com.google.cloud.vmmigration.v1.UpgradeStatus.Builder.class); + } + + /** + * + * + *
+   * The possible values of the state.
+   * 
+ * + * Protobuf enum {@code google.cloud.vmmigration.v1.UpgradeStatus.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The state was not sampled by the health checks yet.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The upgrade has started.
+     * 
+ * + * RUNNING = 1; + */ + RUNNING(1), + /** + * + * + *
+     * The upgrade failed.
+     * 
+ * + * FAILED = 2; + */ + FAILED(2), + /** + * + * + *
+     * The upgrade finished successfully.
+     * 
+ * + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The state was not sampled by the health checks yet.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The upgrade has started.
+     * 
+ * + * RUNNING = 1; + */ + public static final int RUNNING_VALUE = 1; + /** + * + * + *
+     * The upgrade failed.
+     * 
+ * + * FAILED = 2; + */ + public static final int FAILED_VALUE = 2; + /** + * + * + *
+     * The upgrade finished successfully.
+     * 
+ * + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State 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 State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return RUNNING; + case 2: + return FAILED; + case 3: + return SUCCEEDED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.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.vmmigration.v1.UpgradeStatus.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.UpgradeStatus.State) + } + + public static final int VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object version_; + /** + * + * + *
+   * The version to upgrade to.
+   * 
+ * + * string version = 1; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * + * + *
+   * The version to upgrade to.
+   * 
+ * + * string version = 1; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_; + /** + * + * + *
+   * The state of the upgradeAppliance operation.
+   * 
+ * + * .google.cloud.vmmigration.v1.UpgradeStatus.State state = 2; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * The state of the upgradeAppliance operation.
+   * 
+ * + * .google.cloud.vmmigration.v1.UpgradeStatus.State state = 2; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.UpgradeStatus.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.vmmigration.v1.UpgradeStatus.State result = + com.google.cloud.vmmigration.v1.UpgradeStatus.State.valueOf(state_); + return result == null + ? com.google.cloud.vmmigration.v1.UpgradeStatus.State.UNRECOGNIZED + : result; + } + + public static final int ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status error_; + /** + * + * + *
+   * Provides details on the state of the upgrade operation in case of an error.
+   * 
+ * + * .google.rpc.Status error = 3; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return error_ != null; + } + /** + * + * + *
+   * Provides details on the state of the upgrade operation in case of an error.
+   * 
+ * + * .google.rpc.Status error = 3; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + /** + * + * + *
+   * Provides details on the state of the upgrade operation in case of an error.
+   * 
+ * + * .google.rpc.Status error = 3; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return getError(); + } + + public static final int START_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * The time the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * The time the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * The time the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int PREVIOUS_VERSION_FIELD_NUMBER = 5; + private volatile java.lang.Object previousVersion_; + /** + * + * + *
+   * The version from which we upgraded.
+   * 
+ * + * string previous_version = 5; + * + * @return The previousVersion. + */ + @java.lang.Override + public java.lang.String getPreviousVersion() { + java.lang.Object ref = previousVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + previousVersion_ = s; + return s; + } + } + /** + * + * + *
+   * The version from which we upgraded.
+   * 
+ * + * string previous_version = 5; + * + * @return The bytes for previousVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreviousVersionBytes() { + java.lang.Object ref = previousVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + previousVersion_ = 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(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); + } + if (state_ + != com.google.cloud.vmmigration.v1.UpgradeStatus.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, state_); + } + if (error_ != null) { + output.writeMessage(3, getError()); + } + if (startTime_ != null) { + output.writeMessage(4, getStartTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(previousVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, previousVersion_); + } + 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(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); + } + if (state_ + != com.google.cloud.vmmigration.v1.UpgradeStatus.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + if (error_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getError()); + } + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(previousVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, previousVersion_); + } + size += unknownFields.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.vmmigration.v1.UpgradeStatus)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.UpgradeStatus other = + (com.google.cloud.vmmigration.v1.UpgradeStatus) obj; + + if (!getVersion().equals(other.getVersion())) return false; + if (state_ != other.state_) return false; + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError().equals(other.getError())) return false; + } + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (!getPreviousVersion().equals(other.getPreviousVersion())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + hash = (37 * hash) + PREVIOUS_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getPreviousVersion().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.UpgradeStatus parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.UpgradeStatus 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.vmmigration.v1.UpgradeStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.UpgradeStatus 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.vmmigration.v1.UpgradeStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.UpgradeStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.UpgradeStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.UpgradeStatus parseFrom( + 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.vmmigration.v1.UpgradeStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.UpgradeStatus parseDelimitedFrom( + 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.vmmigration.v1.UpgradeStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.UpgradeStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.vmmigration.v1.UpgradeStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * UpgradeStatus contains information about upgradeAppliance operation.
+   * 
+ * + * Protobuf type {@code google.cloud.vmmigration.v1.UpgradeStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.UpgradeStatus) + com.google.cloud.vmmigration.v1.UpgradeStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_UpgradeStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_UpgradeStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.UpgradeStatus.class, + com.google.cloud.vmmigration.v1.UpgradeStatus.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.UpgradeStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = ""; + + state_ = 0; + + if (errorBuilder_ == null) { + error_ = null; + } else { + error_ = null; + errorBuilder_ = null; + } + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + previousVersion_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_UpgradeStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.UpgradeStatus getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.UpgradeStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.UpgradeStatus build() { + com.google.cloud.vmmigration.v1.UpgradeStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.UpgradeStatus buildPartial() { + com.google.cloud.vmmigration.v1.UpgradeStatus result = + new com.google.cloud.vmmigration.v1.UpgradeStatus(this); + result.version_ = version_; + result.state_ = state_; + if (errorBuilder_ == null) { + result.error_ = error_; + } else { + result.error_ = errorBuilder_.build(); + } + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + result.previousVersion_ = previousVersion_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor 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.vmmigration.v1.UpgradeStatus) { + return mergeFrom((com.google.cloud.vmmigration.v1.UpgradeStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.UpgradeStatus other) { + if (other == com.google.cloud.vmmigration.v1.UpgradeStatus.getDefaultInstance()) return this; + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasError()) { + mergeError(other.getError()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (!other.getPreviousVersion().isEmpty()) { + previousVersion_ = other.previousVersion_; + 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.vmmigration.v1.UpgradeStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.vmmigration.v1.UpgradeStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
+     * The version to upgrade to.
+     * 
+ * + * string version = 1; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The version to upgrade to.
+     * 
+ * + * string version = 1; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The version to upgrade to.
+     * 
+ * + * string version = 1; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The version to upgrade to.
+     * 
+ * + * string version = 1; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The version to upgrade to.
+     * 
+ * + * string version = 1; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * The state of the upgradeAppliance operation.
+     * 
+ * + * .google.cloud.vmmigration.v1.UpgradeStatus.State state = 2; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * The state of the upgradeAppliance operation.
+     * 
+ * + * .google.cloud.vmmigration.v1.UpgradeStatus.State state = 2; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The state of the upgradeAppliance operation.
+     * 
+ * + * .google.cloud.vmmigration.v1.UpgradeStatus.State state = 2; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.UpgradeStatus.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.vmmigration.v1.UpgradeStatus.State result = + com.google.cloud.vmmigration.v1.UpgradeStatus.State.valueOf(state_); + return result == null + ? com.google.cloud.vmmigration.v1.UpgradeStatus.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The state of the upgradeAppliance operation.
+     * 
+ * + * .google.cloud.vmmigration.v1.UpgradeStatus.State state = 2; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.vmmigration.v1.UpgradeStatus.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The state of the upgradeAppliance operation.
+     * 
+ * + * .google.cloud.vmmigration.v1.UpgradeStatus.State state = 2; + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + /** + * + * + *
+     * Provides details on the state of the upgrade operation in case of an error.
+     * 
+ * + * .google.rpc.Status error = 3; + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return errorBuilder_ != null || error_ != null; + } + /** + * + * + *
+     * Provides details on the state of the upgrade operation in case of an error.
+     * 
+ * + * .google.rpc.Status error = 3; + * + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Provides details on the state of the upgrade operation in case of an error.
+     * 
+ * + * .google.rpc.Status error = 3; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Provides details on the state of the upgrade operation in case of an error.
+     * 
+ * + * .google.rpc.Status error = 3; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Provides details on the state of the upgrade operation in case of an error.
+     * 
+ * + * .google.rpc.Status error = 3; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (error_ != null) { + error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + } else { + error_ = value; + } + onChanged(); + } else { + errorBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Provides details on the state of the upgrade operation in case of an error.
+     * 
+ * + * .google.rpc.Status error = 3; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + error_ = null; + onChanged(); + } else { + error_ = null; + errorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Provides details on the state of the upgrade operation in case of an error.
+     * 
+ * + * .google.rpc.Status error = 3; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Provides details on the state of the upgrade operation in case of an error.
+     * 
+ * + * .google.rpc.Status error = 3; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + /** + * + * + *
+     * Provides details on the state of the upgrade operation in case of an error.
+     * 
+ * + * .google.rpc.Status error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * The time the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * The time the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * The time the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private java.lang.Object previousVersion_ = ""; + /** + * + * + *
+     * The version from which we upgraded.
+     * 
+ * + * string previous_version = 5; + * + * @return The previousVersion. + */ + public java.lang.String getPreviousVersion() { + java.lang.Object ref = previousVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + previousVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The version from which we upgraded.
+     * 
+ * + * string previous_version = 5; + * + * @return The bytes for previousVersion. + */ + public com.google.protobuf.ByteString getPreviousVersionBytes() { + java.lang.Object ref = previousVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + previousVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The version from which we upgraded.
+     * 
+ * + * string previous_version = 5; + * + * @param value The previousVersion to set. + * @return This builder for chaining. + */ + public Builder setPreviousVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + previousVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The version from which we upgraded.
+     * 
+ * + * string previous_version = 5; + * + * @return This builder for chaining. + */ + public Builder clearPreviousVersion() { + + previousVersion_ = getDefaultInstance().getPreviousVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The version from which we upgraded.
+     * 
+ * + * string previous_version = 5; + * + * @param value The bytes for previousVersion to set. + * @return This builder for chaining. + */ + public Builder setPreviousVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + previousVersion_ = 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.vmmigration.v1.UpgradeStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.UpgradeStatus) + private static final com.google.cloud.vmmigration.v1.UpgradeStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.UpgradeStatus(); + } + + public static com.google.cloud.vmmigration.v1.UpgradeStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpgradeStatus(input, extensionRegistry); + } + }; + + 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.vmmigration.v1.UpgradeStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeStatusOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeStatusOrBuilder.java new file mode 100644 index 000000000000..4289019c0eb1 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeStatusOrBuilder.java @@ -0,0 +1,170 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +package com.google.cloud.vmmigration.v1; + +public interface UpgradeStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.UpgradeStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The version to upgrade to.
+   * 
+ * + * string version = 1; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+   * The version to upgrade to.
+   * 
+ * + * string version = 1; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+   * The state of the upgradeAppliance operation.
+   * 
+ * + * .google.cloud.vmmigration.v1.UpgradeStatus.State state = 2; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * The state of the upgradeAppliance operation.
+   * 
+ * + * .google.cloud.vmmigration.v1.UpgradeStatus.State state = 2; + * + * @return The state. + */ + com.google.cloud.vmmigration.v1.UpgradeStatus.State getState(); + + /** + * + * + *
+   * Provides details on the state of the upgrade operation in case of an error.
+   * 
+ * + * .google.rpc.Status error = 3; + * + * @return Whether the error field is set. + */ + boolean hasError(); + /** + * + * + *
+   * Provides details on the state of the upgrade operation in case of an error.
+   * 
+ * + * .google.rpc.Status error = 3; + * + * @return The error. + */ + com.google.rpc.Status getError(); + /** + * + * + *
+   * Provides details on the state of the upgrade operation in case of an error.
+   * 
+ * + * .google.rpc.Status error = 3; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + + /** + * + * + *
+   * The time the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * The time the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * The time the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * The version from which we upgraded.
+   * 
+ * + * string previous_version = 5; + * + * @return The previousVersion. + */ + java.lang.String getPreviousVersion(); + /** + * + * + *
+   * The version from which we upgraded.
+   * 
+ * + * string previous_version = 5; + * + * @return The bytes for previousVersion. + */ + com.google.protobuf.ByteString getPreviousVersionBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UtilizationReport.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UtilizationReport.java index e98fe89bf1f5..b0d03129a14b 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UtilizationReport.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UtilizationReport.java @@ -776,7 +776,8 @@ public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { * * *
-   * Output only. Provides details on the state of the report in case of an error.
+   * Output only. Provides details on the state of the report in case of an
+   * error.
    * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -791,7 +792,8 @@ public boolean hasError() { * * *
-   * Output only. Provides details on the state of the report in case of an error.
+   * Output only. Provides details on the state of the report in case of an
+   * error.
    * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -806,7 +808,8 @@ public com.google.rpc.Status getError() { * * *
-   * Output only. Provides details on the state of the report in case of an error.
+   * Output only. Provides details on the state of the report in case of an
+   * error.
    * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -822,8 +825,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * * *
-   * Output only. The time the report was created (this refers to the time of the request,
-   * not the time the report creation completed).
+   * Output only. The time the report was created (this refers to the time of
+   * the request, not the time the report creation completed).
    * 
* * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -839,8 +842,8 @@ public boolean hasCreateTime() { * * *
-   * Output only. The time the report was created (this refers to the time of the request,
-   * not the time the report creation completed).
+   * Output only. The time the report was created (this refers to the time of
+   * the request, not the time the report creation completed).
    * 
* * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -856,8 +859,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-   * Output only. The time the report was created (this refers to the time of the request,
-   * not the time the report creation completed).
+   * Output only. The time the report was created (this refers to the time of
+   * the request, not the time the report creation completed).
    * 
* * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -912,9 +915,9 @@ public com.google.cloud.vmmigration.v1.UtilizationReport.TimeFrame getTimeFrame( * * *
-   * Output only. The point in time when the time frame ends. Notice that the time
-   * frame is counted backwards. For instance if the "frame_end_time" value is
-   * 2021/01/20 and the time frame is WEEK then the report covers the week
+   * Output only. The point in time when the time frame ends. Notice that the
+   * time frame is counted backwards. For instance if the "frame_end_time" value
+   * is 2021/01/20 and the time frame is WEEK then the report covers the week
    * between 2021/01/20 and 2021/01/14.
    * 
* @@ -932,9 +935,9 @@ public boolean hasFrameEndTime() { * * *
-   * Output only. The point in time when the time frame ends. Notice that the time
-   * frame is counted backwards. For instance if the "frame_end_time" value is
-   * 2021/01/20 and the time frame is WEEK then the report covers the week
+   * Output only. The point in time when the time frame ends. Notice that the
+   * time frame is counted backwards. For instance if the "frame_end_time" value
+   * is 2021/01/20 and the time frame is WEEK then the report covers the week
    * between 2021/01/20 and 2021/01/14.
    * 
* @@ -954,9 +957,9 @@ public com.google.protobuf.Timestamp getFrameEndTime() { * * *
-   * Output only. The point in time when the time frame ends. Notice that the time
-   * frame is counted backwards. For instance if the "frame_end_time" value is
-   * 2021/01/20 and the time frame is WEEK then the report covers the week
+   * Output only. The point in time when the time frame ends. Notice that the
+   * time frame is counted backwards. For instance if the "frame_end_time" value
+   * is 2021/01/20 and the time frame is WEEK then the report covers the week
    * between 2021/01/20 and 2021/01/14.
    * 
* @@ -2138,7 +2141,8 @@ public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { * * *
-     * Output only. Provides details on the state of the report in case of an error.
+     * Output only. Provides details on the state of the report in case of an
+     * error.
      * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2152,7 +2156,8 @@ public boolean hasError() { * * *
-     * Output only. Provides details on the state of the report in case of an error.
+     * Output only. Provides details on the state of the report in case of an
+     * error.
      * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2170,7 +2175,8 @@ public com.google.rpc.Status getError() { * * *
-     * Output only. Provides details on the state of the report in case of an error.
+     * Output only. Provides details on the state of the report in case of an
+     * error.
      * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2192,7 +2198,8 @@ public Builder setError(com.google.rpc.Status value) { * * *
-     * Output only. Provides details on the state of the report in case of an error.
+     * Output only. Provides details on the state of the report in case of an
+     * error.
      * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2211,7 +2218,8 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { * * *
-     * Output only. Provides details on the state of the report in case of an error.
+     * Output only. Provides details on the state of the report in case of an
+     * error.
      * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2234,7 +2242,8 @@ public Builder mergeError(com.google.rpc.Status value) { * * *
-     * Output only. Provides details on the state of the report in case of an error.
+     * Output only. Provides details on the state of the report in case of an
+     * error.
      * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2254,7 +2263,8 @@ public Builder clearError() { * * *
-     * Output only. Provides details on the state of the report in case of an error.
+     * Output only. Provides details on the state of the report in case of an
+     * error.
      * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2268,7 +2278,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() { * * *
-     * Output only. Provides details on the state of the report in case of an error.
+     * Output only. Provides details on the state of the report in case of an
+     * error.
      * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2284,7 +2295,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * * *
-     * Output only. Provides details on the state of the report in case of an error.
+     * Output only. Provides details on the state of the report in case of an
+     * error.
      * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2313,8 +2325,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * * *
-     * Output only. The time the report was created (this refers to the time of the request,
-     * not the time the report creation completed).
+     * Output only. The time the report was created (this refers to the time of
+     * the request, not the time the report creation completed).
      * 
* * @@ -2330,8 +2342,8 @@ public boolean hasCreateTime() { * * *
-     * Output only. The time the report was created (this refers to the time of the request,
-     * not the time the report creation completed).
+     * Output only. The time the report was created (this refers to the time of
+     * the request, not the time the report creation completed).
      * 
* * @@ -2353,8 +2365,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-     * Output only. The time the report was created (this refers to the time of the request,
-     * not the time the report creation completed).
+     * Output only. The time the report was created (this refers to the time of
+     * the request, not the time the report creation completed).
      * 
* * @@ -2378,8 +2390,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The time the report was created (this refers to the time of the request,
-     * not the time the report creation completed).
+     * Output only. The time the report was created (this refers to the time of
+     * the request, not the time the report creation completed).
      * 
* * @@ -2400,8 +2412,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. The time the report was created (this refers to the time of the request,
-     * not the time the report creation completed).
+     * Output only. The time the report was created (this refers to the time of
+     * the request, not the time the report creation completed).
      * 
* * @@ -2427,8 +2439,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The time the report was created (this refers to the time of the request,
-     * not the time the report creation completed).
+     * Output only. The time the report was created (this refers to the time of
+     * the request, not the time the report creation completed).
      * 
* * @@ -2450,8 +2462,8 @@ public Builder clearCreateTime() { * * *
-     * Output only. The time the report was created (this refers to the time of the request,
-     * not the time the report creation completed).
+     * Output only. The time the report was created (this refers to the time of
+     * the request, not the time the report creation completed).
      * 
* * @@ -2467,8 +2479,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * * *
-     * Output only. The time the report was created (this refers to the time of the request,
-     * not the time the report creation completed).
+     * Output only. The time the report was created (this refers to the time of
+     * the request, not the time the report creation completed).
      * 
* * @@ -2488,8 +2500,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * Output only. The time the report was created (this refers to the time of the request,
-     * not the time the report creation completed).
+     * Output only. The time the report was created (this refers to the time of
+     * the request, not the time the report creation completed).
      * 
* * @@ -2616,9 +2628,9 @@ public Builder clearTimeFrame() { * * *
-     * Output only. The point in time when the time frame ends. Notice that the time
-     * frame is counted backwards. For instance if the "frame_end_time" value is
-     * 2021/01/20 and the time frame is WEEK then the report covers the week
+     * Output only. The point in time when the time frame ends. Notice that the
+     * time frame is counted backwards. For instance if the "frame_end_time" value
+     * is 2021/01/20 and the time frame is WEEK then the report covers the week
      * between 2021/01/20 and 2021/01/14.
      * 
* @@ -2635,9 +2647,9 @@ public boolean hasFrameEndTime() { * * *
-     * Output only. The point in time when the time frame ends. Notice that the time
-     * frame is counted backwards. For instance if the "frame_end_time" value is
-     * 2021/01/20 and the time frame is WEEK then the report covers the week
+     * Output only. The point in time when the time frame ends. Notice that the
+     * time frame is counted backwards. For instance if the "frame_end_time" value
+     * is 2021/01/20 and the time frame is WEEK then the report covers the week
      * between 2021/01/20 and 2021/01/14.
      * 
* @@ -2660,9 +2672,9 @@ public com.google.protobuf.Timestamp getFrameEndTime() { * * *
-     * Output only. The point in time when the time frame ends. Notice that the time
-     * frame is counted backwards. For instance if the "frame_end_time" value is
-     * 2021/01/20 and the time frame is WEEK then the report covers the week
+     * Output only. The point in time when the time frame ends. Notice that the
+     * time frame is counted backwards. For instance if the "frame_end_time" value
+     * is 2021/01/20 and the time frame is WEEK then the report covers the week
      * between 2021/01/20 and 2021/01/14.
      * 
* @@ -2687,9 +2699,9 @@ public Builder setFrameEndTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The point in time when the time frame ends. Notice that the time
-     * frame is counted backwards. For instance if the "frame_end_time" value is
-     * 2021/01/20 and the time frame is WEEK then the report covers the week
+     * Output only. The point in time when the time frame ends. Notice that the
+     * time frame is counted backwards. For instance if the "frame_end_time" value
+     * is 2021/01/20 and the time frame is WEEK then the report covers the week
      * between 2021/01/20 and 2021/01/14.
      * 
* @@ -2711,9 +2723,9 @@ public Builder setFrameEndTime(com.google.protobuf.Timestamp.Builder builderForV * * *
-     * Output only. The point in time when the time frame ends. Notice that the time
-     * frame is counted backwards. For instance if the "frame_end_time" value is
-     * 2021/01/20 and the time frame is WEEK then the report covers the week
+     * Output only. The point in time when the time frame ends. Notice that the
+     * time frame is counted backwards. For instance if the "frame_end_time" value
+     * is 2021/01/20 and the time frame is WEEK then the report covers the week
      * between 2021/01/20 and 2021/01/14.
      * 
* @@ -2742,9 +2754,9 @@ public Builder mergeFrameEndTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The point in time when the time frame ends. Notice that the time
-     * frame is counted backwards. For instance if the "frame_end_time" value is
-     * 2021/01/20 and the time frame is WEEK then the report covers the week
+     * Output only. The point in time when the time frame ends. Notice that the
+     * time frame is counted backwards. For instance if the "frame_end_time" value
+     * is 2021/01/20 and the time frame is WEEK then the report covers the week
      * between 2021/01/20 and 2021/01/14.
      * 
* @@ -2767,9 +2779,9 @@ public Builder clearFrameEndTime() { * * *
-     * Output only. The point in time when the time frame ends. Notice that the time
-     * frame is counted backwards. For instance if the "frame_end_time" value is
-     * 2021/01/20 and the time frame is WEEK then the report covers the week
+     * Output only. The point in time when the time frame ends. Notice that the
+     * time frame is counted backwards. For instance if the "frame_end_time" value
+     * is 2021/01/20 and the time frame is WEEK then the report covers the week
      * between 2021/01/20 and 2021/01/14.
      * 
* @@ -2786,9 +2798,9 @@ public com.google.protobuf.Timestamp.Builder getFrameEndTimeBuilder() { * * *
-     * Output only. The point in time when the time frame ends. Notice that the time
-     * frame is counted backwards. For instance if the "frame_end_time" value is
-     * 2021/01/20 and the time frame is WEEK then the report covers the week
+     * Output only. The point in time when the time frame ends. Notice that the
+     * time frame is counted backwards. For instance if the "frame_end_time" value
+     * is 2021/01/20 and the time frame is WEEK then the report covers the week
      * between 2021/01/20 and 2021/01/14.
      * 
* @@ -2809,9 +2821,9 @@ public com.google.protobuf.TimestampOrBuilder getFrameEndTimeOrBuilder() { * * *
-     * Output only. The point in time when the time frame ends. Notice that the time
-     * frame is counted backwards. For instance if the "frame_end_time" value is
-     * 2021/01/20 and the time frame is WEEK then the report covers the week
+     * Output only. The point in time when the time frame ends. Notice that the
+     * time frame is counted backwards. For instance if the "frame_end_time" value
+     * is 2021/01/20 and the time frame is WEEK then the report covers the week
      * between 2021/01/20 and 2021/01/14.
      * 
* diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UtilizationReportOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UtilizationReportOrBuilder.java index e2e3d8c4b124..ff01cc9e32b8 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UtilizationReportOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UtilizationReportOrBuilder.java @@ -144,7 +144,8 @@ public interface UtilizationReportOrBuilder * * *
-   * Output only. Provides details on the state of the report in case of an error.
+   * Output only. Provides details on the state of the report in case of an
+   * error.
    * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -156,7 +157,8 @@ public interface UtilizationReportOrBuilder * * *
-   * Output only. Provides details on the state of the report in case of an error.
+   * Output only. Provides details on the state of the report in case of an
+   * error.
    * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -168,7 +170,8 @@ public interface UtilizationReportOrBuilder * * *
-   * Output only. Provides details on the state of the report in case of an error.
+   * Output only. Provides details on the state of the report in case of an
+   * error.
    * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -179,8 +182,8 @@ public interface UtilizationReportOrBuilder * * *
-   * Output only. The time the report was created (this refers to the time of the request,
-   * not the time the report creation completed).
+   * Output only. The time the report was created (this refers to the time of
+   * the request, not the time the report creation completed).
    * 
* * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -193,8 +196,8 @@ public interface UtilizationReportOrBuilder * * *
-   * Output only. The time the report was created (this refers to the time of the request,
-   * not the time the report creation completed).
+   * Output only. The time the report was created (this refers to the time of
+   * the request, not the time the report creation completed).
    * 
* * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -207,8 +210,8 @@ public interface UtilizationReportOrBuilder * * *
-   * Output only. The time the report was created (this refers to the time of the request,
-   * not the time the report creation completed).
+   * Output only. The time the report was created (this refers to the time of
+   * the request, not the time the report creation completed).
    * 
* * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -245,9 +248,9 @@ public interface UtilizationReportOrBuilder * * *
-   * Output only. The point in time when the time frame ends. Notice that the time
-   * frame is counted backwards. For instance if the "frame_end_time" value is
-   * 2021/01/20 and the time frame is WEEK then the report covers the week
+   * Output only. The point in time when the time frame ends. Notice that the
+   * time frame is counted backwards. For instance if the "frame_end_time" value
+   * is 2021/01/20 and the time frame is WEEK then the report covers the week
    * between 2021/01/20 and 2021/01/14.
    * 
* @@ -262,9 +265,9 @@ public interface UtilizationReportOrBuilder * * *
-   * Output only. The point in time when the time frame ends. Notice that the time
-   * frame is counted backwards. For instance if the "frame_end_time" value is
-   * 2021/01/20 and the time frame is WEEK then the report covers the week
+   * Output only. The point in time when the time frame ends. Notice that the
+   * time frame is counted backwards. For instance if the "frame_end_time" value
+   * is 2021/01/20 and the time frame is WEEK then the report covers the week
    * between 2021/01/20 and 2021/01/14.
    * 
* @@ -279,9 +282,9 @@ public interface UtilizationReportOrBuilder * * *
-   * Output only. The point in time when the time frame ends. Notice that the time
-   * frame is counted backwards. For instance if the "frame_end_time" value is
-   * 2021/01/20 and the time frame is WEEK then the report covers the week
+   * Output only. The point in time when the time frame ends. Notice that the
+   * time frame is counted backwards. For instance if the "frame_end_time" value
+   * is 2021/01/20 and the time frame is WEEK then the report covers the week
    * between 2021/01/20 and 2021/01/14.
    * 
* diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationProto.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationProto.java index 60952a2f4eb2..afc39c18755d 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationProto.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationProto.java @@ -91,6 +91,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmmigration_v1_DatacenterConnector_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmmigration_v1_DatacenterConnector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_UpgradeStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_UpgradeStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_AvailableUpdates_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_AvailableUpdates_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_ApplianceVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_ApplianceVersion_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmmigration_v1_ListSourcesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -179,6 +191,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmmigration_v1_DeleteDatacenterConnectorRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmmigration_v1_DeleteDatacenterConnectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_UpgradeApplianceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_UpgradeApplianceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_UpgradeApplianceResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_UpgradeApplianceResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmmigration_v1_ListDatacenterConnectorsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -409,7 +429,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ycle\022.\n\nstart_time\030\001 \001(\0132\032.google.protob" + "uf.Timestamp\022\030\n\020progress_percent\030\005 \001(\005\"E" + "\n\017ReplicationSync\0222\n\016last_sync_time\030\001 \001(" - + "\0132\032.google.protobuf.Timestamp\"\246\t\n\013Migrat" + + "\0132\032.google.protobuf.Timestamp\"\270\n\n\013Migrat" + "ingVm\022b\n\036compute_engine_target_defaults\030" + "\032 \001(\01328.google.cloud.vmmigration.v1.Comp" + "uteEngineTargetDefaultsH\000\022\021\n\004name\030\001 \001(\tB" @@ -428,703 +448,749 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ion.v1.ReplicationCycleB\003\340A\003\0227\n\005group\030\017 " + "\001(\tB(\340A\003\372A\"\022 vmmigration.googleapis.com/" + "Group\022D\n\006labels\030\020 \003(\01324.google.cloud.vmm" - + "igration.v1.MigratingVm.LabelsEntry\022&\n\005e" - + "rror\030\023 \001(\0132\022.google.rpc.StatusB\003\340A\003\032-\n\013L" - + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001\"\267\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007P" - + "ENDING\020\001\022\t\n\005READY\020\002\022\016\n\nFIRST_SYNC\020\003\022\n\n\006A" - + "CTIVE\020\004\022\020\n\014CUTTING_OVER\020\007\022\013\n\007CUTOVER\020\010\022\016" - + "\n\nFINAL_SYNC\020\t\022\n\n\006PAUSED\020\n\022\016\n\nFINALIZING" - + "\020\013\022\r\n\tFINALIZED\020\014\022\t\n\005ERROR\020\r:\201\001\352A~\n&vmmi" - + "gration.googleapis.com/MigratingVm\022Tproj" - + "ects/{project}/locations/{location}/sour" - + "ces/{source}/migratingVms/{migrating_vm}" - + "B\024\n\022target_vm_defaults\"\205\005\n\010CloneJob\022e\n\035c" - + "ompute_engine_target_details\030\024 \001(\01327.goo" - + "gle.cloud.vmmigration.v1.ComputeEngineTa" - + "rgetDetailsB\003\340A\003H\000\0224\n\013create_time\030\001 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\022\014\n\004name" - + "\030\003 \001(\t\022?\n\005state\030\014 \001(\0162+.google.cloud.vmm" - + "igration.v1.CloneJob.StateB\003\340A\003\0223\n\nstate" - + "_time\030\016 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\022&\n\005error\030\021 \001(\0132\022.google.rpc.StatusB" - + "\003\340A\003\"\202\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n" - + "\007PENDING\020\001\022\n\n\006ACTIVE\020\002\022\n\n\006FAILED\020\003\022\r\n\tSU" - + "CCEEDED\020\004\022\r\n\tCANCELLED\020\005\022\016\n\nCANCELLING\020\006" - + "\022\017\n\013ADAPTING_OS\020\007:\225\001\352A\221\001\n#vmmigration.go" - + "ogleapis.com/CloneJob\022jprojects/{project" - + "}/locations/{location}/sources/{source}/" - + "migratingVms/{migrating_vm}/cloneJobs/{c" - + "lone_job}B\023\n\021target_vm_details\"\317\005\n\nCutov" - + "erJob\022e\n\035compute_engine_target_details\030\016" - + " \001(\01327.google.cloud.vmmigration.v1.Compu" - + "teEngineTargetDetailsB\003\340A\003H\000\0224\n\013create_t" - + "ime\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\022\021\n\004name\030\003 \001(\tB\003\340A\003\022A\n\005state\030\005 \001(\0162-.g" - + "oogle.cloud.vmmigration.v1.CutoverJob.St" - + "ateB\003\340A\003\0223\n\nstate_time\030\006 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\022\035\n\020progress_percen" - + "t\030\r \001(\005B\003\340A\003\022&\n\005error\030\t \001(\0132\022.google.rpc" - + ".StatusB\003\340A\003\022\032\n\rstate_message\030\n \001(\tB\003\340A\003" - + "\"\202\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PEN" - + "DING\020\001\022\n\n\006FAILED\020\002\022\r\n\tSUCCEEDED\020\003\022\r\n\tCAN" - + "CELLED\020\004\022\016\n\nCANCELLING\020\005\022\n\n\006ACTIVE\020\006\022\017\n\013" - + "ADAPTING_OS\020\007:\233\001\352A\227\001\n%vmmigration.google" - + "apis.com/CutoverJob\022nprojects/{project}/" - + "locations/{location}/sources/{source}/mi" - + "gratingVms/{migrating_vm}/cutoverJobs/{c" - + "utover_job}B\023\n\021target_vm_details\"\302\001\n\025Cre" - + "ateCloneJobRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372" - + "A%\022#vmmigration.googleapis.com/CloneJob\022" - + "\031\n\014clone_job_id\030\002 \001(\tB\003\340A\002\022=\n\tclone_job\030" - + "\003 \001(\0132%.google.cloud.vmmigration.v1.Clon" - + "eJobB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"R\n\025CancelC" - + "loneJobRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#vm" - + "migration.googleapis.com/CloneJob\"\030\n\026Can" - + "celCloneJobResponse\"\260\001\n\024ListCloneJobsReq" - + "uest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#vmmigratio" - + "n.googleapis.com/CloneJob\022\026\n\tpage_size\030\002" - + " \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\002\022\023\n\006fi" - + "lter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\217" - + "\001\n\025ListCloneJobsResponse\022>\n\nclone_jobs\030\001" - + " \003(\0132%.google.cloud.vmmigration.v1.Clone" - + "JobB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\003\022\030" - + "\n\013unreachable\030\003 \003(\tB\003\340A\003\"O\n\022GetCloneJobR" - + "equest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#vmmigratio" - + "n.googleapis.com/CloneJob\"\304\003\n\006Source\022B\n\006" - + "vmware\030\n \001(\01320.google.cloud.vmmigration." - + "v1.VmwareSourceDetailsH\000\022\021\n\004name\030\001 \001(\tB\003" - + "\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\022?\n\006label" - + "s\030\004 \003(\0132/.google.cloud.vmmigration.v1.So" - + "urce.LabelsEntry\022\023\n\013description\030\006 \001(\t\032-\n" - + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + ":\0028\001:`\352A]\n!vmmigration.googleapis.com/So" - + "urce\0228projects/{project}/locations/{loca" - + "tion}/sources/{source}B\020\n\016source_details" - + "\"f\n\023VmwareSourceDetails\022\020\n\010username\030\001 \001(" - + "\t\022\025\n\010password\030\002 \001(\tB\003\340A\004\022\022\n\nvcenter_ip\030\003" - + " \001(\t\022\022\n\nthumbprint\030\004 \001(\t\"\211\005\n\023DatacenterC" - + "onnector\0224\n\013create_time\030\001 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\0224\n\013update_time\030\002 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n\004" - + "name\030\003 \001(\tB\003\340A\003\022\034\n\017registration_id\030\014 \001(\t" - + "B\003\340A\005\022\027\n\017service_account\030\005 \001(\t\022\017\n\007versio" - + "n\030\006 \001(\t\022\023\n\006bucket\030\n \001(\tB\003\340A\003\022J\n\005state\030\007 " - + "\001(\01626.google.cloud.vmmigration.v1.Datace" - + "nterConnector.StateB\003\340A\003\0223\n\nstate_time\030\010" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022&\n" - + "\005error\030\013 \001(\0132\022.google.rpc.StatusB\003\340A\003\"P\n" - + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDING" - + "\020\001\022\013\n\007OFFLINE\020\002\022\n\n\006FAILED\020\003\022\n\n\006ACTIVE\020\004:" - + "\232\001\352A\226\001\n.vmmigration.googleapis.com/Datac" - + "enterConnector\022dprojects/{project}/locat" - + "ions/{location}/sources/{source}/datacen" - + "terConnectors/{datacenter_connector}\"\254\001\n" - + "\022ListSourcesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002" - + "\372A#\022!vmmigration.googleapis.com/Source\022\026" + + "igration.v1.MigratingVm.LabelsEntry\022E\n\021r" + + "ecent_clone_jobs\030\021 \003(\0132%.google.cloud.vm" + + "migration.v1.CloneJobB\003\340A\003\022&\n\005error\030\023 \001(" + + "\0132\022.google.rpc.StatusB\003\340A\003\022I\n\023recent_cut" + + "over_jobs\030\024 \003(\0132\'.google.cloud.vmmigrati" + + "on.v1.CutoverJobB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\267\001\n\005State\022\025" + + "\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\t\n\005RE" + + "ADY\020\002\022\016\n\nFIRST_SYNC\020\003\022\n\n\006ACTIVE\020\004\022\020\n\014CUT" + + "TING_OVER\020\007\022\013\n\007CUTOVER\020\010\022\016\n\nFINAL_SYNC\020\t" + + "\022\n\n\006PAUSED\020\n\022\016\n\nFINALIZING\020\013\022\r\n\tFINALIZE" + + "D\020\014\022\t\n\005ERROR\020\r:\201\001\352A~\n&vmmigration.google" + + "apis.com/MigratingVm\022Tprojects/{project}" + + "/locations/{location}/sources/{source}/m" + + "igratingVms/{migrating_vm}B\024\n\022target_vm_" + + "defaults\"\275\005\n\010CloneJob\022e\n\035compute_engine_" + + "target_details\030\024 \001(\01327.google.cloud.vmmi" + + "gration.v1.ComputeEngineTargetDetailsB\003\340" + + "A\003H\000\0224\n\013create_time\030\001 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0221\n\010end_time\030\026 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022\021\n\004name\030\003 " + + "\001(\tB\003\340A\003\022?\n\005state\030\014 \001(\0162+.google.cloud.v" + + "mmigration.v1.CloneJob.StateB\003\340A\003\0223\n\nsta" + + "te_time\030\016 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\022&\n\005error\030\021 \001(\0132\022.google.rpc.Statu" + + "sB\003\340A\003\"\202\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + + "\013\n\007PENDING\020\001\022\n\n\006ACTIVE\020\002\022\n\n\006FAILED\020\003\022\r\n\t" + + "SUCCEEDED\020\004\022\r\n\tCANCELLED\020\005\022\016\n\nCANCELLING" + + "\020\006\022\017\n\013ADAPTING_OS\020\007:\225\001\352A\221\001\n#vmmigration." + + "googleapis.com/CloneJob\022jprojects/{proje" + + "ct}/locations/{location}/sources/{source" + + "}/migratingVms/{migrating_vm}/cloneJobs/" + + "{clone_job}B\023\n\021target_vm_details\"\202\006\n\nCut" + + "overJob\022e\n\035compute_engine_target_details" + + "\030\016 \001(\01327.google.cloud.vmmigration.v1.Com" + + "puteEngineTargetDetailsB\003\340A\003H\000\0224\n\013create" + + "_time\030\001 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0221\n\010end_time\030\020 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022\021\n\004name\030\003 \001(\tB\003\340A\003\022A\n\005st" + + "ate\030\005 \001(\0162-.google.cloud.vmmigration.v1." + + "CutoverJob.StateB\003\340A\003\0223\n\nstate_time\030\006 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022\035\n\020pr" + + "ogress_percent\030\r \001(\005B\003\340A\003\022&\n\005error\030\t \001(\013" + + "2\022.google.rpc.StatusB\003\340A\003\022\032\n\rstate_messa" + + "ge\030\n \001(\tB\003\340A\003\"\202\001\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\013\n\007PENDING\020\001\022\n\n\006FAILED\020\002\022\r\n\tSUCCE" + + "EDED\020\003\022\r\n\tCANCELLED\020\004\022\016\n\nCANCELLING\020\005\022\n\n" + + "\006ACTIVE\020\006\022\017\n\013ADAPTING_OS\020\007:\233\001\352A\227\001\n%vmmig" + + "ration.googleapis.com/CutoverJob\022nprojec" + + "ts/{project}/locations/{location}/source" + + "s/{source}/migratingVms/{migrating_vm}/c" + + "utoverJobs/{cutover_job}B\023\n\021target_vm_de" + + "tails\"\302\001\n\025CreateCloneJobRequest\022;\n\006paren" + + "t\030\001 \001(\tB+\340A\002\372A%\022#vmmigration.googleapis." + + "com/CloneJob\022\031\n\014clone_job_id\030\002 \001(\tB\003\340A\002\022" + + "=\n\tclone_job\030\003 \001(\0132%.google.cloud.vmmigr" + + "ation.v1.CloneJobB\003\340A\002\022\022\n\nrequest_id\030\004 \001" + + "(\t\"R\n\025CancelCloneJobRequest\0229\n\004name\030\001 \001(" + + "\tB+\340A\002\372A%\n#vmmigration.googleapis.com/Cl" + + "oneJob\"\030\n\026CancelCloneJobResponse\"\260\001\n\024Lis" + + "tCloneJobsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A" + + "%\022#vmmigration.googleapis.com/CloneJob\022\026" + "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001" + "(\tB\003\340A\002\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by" - + "\030\005 \001(\tB\003\340A\001\"\210\001\n\023ListSourcesResponse\0229\n\007s" - + "ources\030\001 \003(\0132#.google.cloud.vmmigration." - + "v1.SourceB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB" - + "\003\340A\003\022\030\n\013unreachable\030\003 \003(\tB\003\340A\003\"K\n\020GetSou" - + "rceRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!vmmigr" - + "ation.googleapis.com/Source\"\266\001\n\023CreateSo" - + "urceRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!vmm" - + "igration.googleapis.com/Source\022\026\n\tsource" - + "_id\030\002 \001(\tB\003\340A\002\0228\n\006source\030\003 \001(\0132#.google." - + "cloud.vmmigration.v1.SourceB\003\340A\002\022\022\n\nrequ" - + "est_id\030\004 \001(\t\"\224\001\n\023UpdateSourceRequest\022/\n\013" - + "update_mask\030\001 \001(\0132\032.google.protobuf.Fiel" - + "dMask\0228\n\006source\030\002 \001(\0132#.google.cloud.vmm" - + "igration.v1.SourceB\003\340A\002\022\022\n\nrequest_id\030\003 " - + "\001(\t\"g\n\023DeleteSourceRequest\0227\n\004name\030\001 \001(\t" - + "B)\340A\002\372A#\n!vmmigration.googleapis.com/Sou" - + "rce\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"i\n\025FetchInv" - + "entoryRequest\0229\n\006source\030\001 \001(\tB)\340A\002\372A#\n!v" - + "mmigration.googleapis.com/Source\022\025\n\rforc" - + "e_refresh\030\002 \001(\010\"\230\004\n\017VmwareVmDetails\022\r\n\005v" - + "m_id\030\001 \001(\t\022\025\n\rdatacenter_id\030\002 \001(\t\022\036\n\026dat" - + "acenter_description\030\003 \001(\t\022\014\n\004uuid\030\004 \001(\t\022" - + "\024\n\014display_name\030\005 \001(\t\022L\n\013power_state\030\006 \001" - + "(\01627.google.cloud.vmmigration.v1.VmwareV" - + "mDetails.PowerState\022\021\n\tcpu_count\030\007 \001(\005\022\021" - + "\n\tmemory_mb\030\010 \001(\005\022\022\n\ndisk_count\030\t \001(\005\022\034\n" - + "\024committed_storage_mb\030\014 \001(\003\022\031\n\021guest_des" - + "cription\030\013 \001(\t\022Q\n\013boot_option\030\r \001(\01627.go" + + "\030\005 \001(\tB\003\340A\001\"\217\001\n\025ListCloneJobsResponse\022>\n" + + "\nclone_jobs\030\001 \003(\0132%.google.cloud.vmmigra" + + "tion.v1.CloneJobB\003\340A\003\022\034\n\017next_page_token" + + "\030\002 \001(\tB\003\340A\003\022\030\n\013unreachable\030\003 \003(\tB\003\340A\003\"O\n" + + "\022GetCloneJobRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A" + + "%\n#vmmigration.googleapis.com/CloneJob\"\304" + + "\003\n\006Source\022B\n\006vmware\030\n \001(\01320.google.cloud" + + ".vmmigration.v1.VmwareSourceDetailsH\000\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\0224\n\013update" + + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\022?\n\006labels\030\004 \003(\0132/.google.cloud.vmmi" + + "gration.v1.Source.LabelsEntry\022\023\n\013descrip" + + "tion\030\006 \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001:`\352A]\n!vmmigration.goog" + + "leapis.com/Source\0228projects/{project}/lo" + + "cations/{location}/sources/{source}B\020\n\016s" + + "ource_details\"f\n\023VmwareSourceDetails\022\020\n\010" + + "username\030\001 \001(\t\022\025\n\010password\030\002 \001(\tB\003\340A\004\022\022\n" + + "\nvcenter_ip\030\003 \001(\t\022\022\n\nthumbprint\030\004 \001(\t\"\372\006" + + "\n\023DatacenterConnector\0224\n\013create_time\030\001 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013u" + + "pdate_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\022\021\n\004name\030\003 \001(\tB\003\340A\003\022\034\n\017registra" + + "tion_id\030\014 \001(\tB\003\340A\005\022\027\n\017service_account\030\005 " + + "\001(\t\022\017\n\007version\030\006 \001(\t\022\023\n\006bucket\030\n \001(\tB\003\340A" + + "\003\022J\n\005state\030\007 \001(\01626.google.cloud.vmmigrat" + + "ion.v1.DatacenterConnector.StateB\003\340A\003\0223\n" + + "\nstate_time\030\010 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022&\n\005error\030\013 \001(\0132\022.google.rpc.S" + + "tatusB\003\340A\003\022-\n appliance_infrastructure_v" + + "ersion\030\r \001(\tB\003\340A\003\022\'\n\032appliance_software_" + + "version\030\016 \001(\tB\003\340A\003\022N\n\022available_versions" + + "\030\017 \001(\0132-.google.cloud.vmmigration.v1.Ava" + + "ilableUpdatesB\003\340A\003\022G\n\016upgrade_status\030\020 \001" + + "(\0132*.google.cloud.vmmigration.v1.Upgrade" + + "StatusB\003\340A\003\"P\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\013\n\007PENDING\020\001\022\013\n\007OFFLINE\020\002\022\n\n\006FAILED\020" + + "\003\022\n\n\006ACTIVE\020\004:\232\001\352A\226\001\n.vmmigration.google" + + "apis.com/DatacenterConnector\022dprojects/{" + + "project}/locations/{location}/sources/{s" + + "ource}/datacenterConnectors/{datacenter_" + + "connector}\"\226\002\n\rUpgradeStatus\022\017\n\007version\030" + + "\001 \001(\t\022?\n\005state\030\002 \001(\01620.google.cloud.vmmi" + + "gration.v1.UpgradeStatus.State\022!\n\005error\030" + + "\003 \001(\0132\022.google.rpc.Status\022.\n\nstart_time\030" + + "\004 \001(\0132\032.google.protobuf.Timestamp\022\030\n\020pre" + + "vious_version\030\005 \001(\t\"F\n\005State\022\025\n\021STATE_UN" + + "SPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\n\n\006FAILED\020\002\022\r\n\t" + + "SUCCEEDED\020\003\"\253\001\n\020AvailableUpdates\022O\n\030new_" + + "deployable_appliance\030\001 \001(\0132-.google.clou" + + "d.vmmigration.v1.ApplianceVersion\022F\n\017in_" + + "place_update\030\002 \001(\0132-.google.cloud.vmmigr" + + "ation.v1.ApplianceVersion\"]\n\020ApplianceVe" + + "rsion\022\017\n\007version\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010c" + + "ritical\030\003 \001(\010\022\031\n\021release_notes_uri\030\004 \001(\t" + + "\"\254\001\n\022ListSourcesRequest\0229\n\006parent\030\001 \001(\tB" + + ")\340A\002\372A#\022!vmmigration.googleapis.com/Sour" + + "ce\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token" + + "\030\003 \001(\tB\003\340A\002\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010orde" + + "r_by\030\005 \001(\tB\003\340A\001\"\210\001\n\023ListSourcesResponse\022" + + "9\n\007sources\030\001 \003(\0132#.google.cloud.vmmigrat" + + "ion.v1.SourceB\003\340A\003\022\034\n\017next_page_token\030\002 " + + "\001(\tB\003\340A\003\022\030\n\013unreachable\030\003 \003(\tB\003\340A\003\"K\n\020Ge" + + "tSourceRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!vm" + + "migration.googleapis.com/Source\"\266\001\n\023Crea" + + "teSourceRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022" + + "!vmmigration.googleapis.com/Source\022\026\n\tso" + + "urce_id\030\002 \001(\tB\003\340A\002\0228\n\006source\030\003 \001(\0132#.goo" + + "gle.cloud.vmmigration.v1.SourceB\003\340A\002\022\022\n\n" + + "request_id\030\004 \001(\t\"\224\001\n\023UpdateSourceRequest" + + "\022/\n\013update_mask\030\001 \001(\0132\032.google.protobuf." + + "FieldMask\0228\n\006source\030\002 \001(\0132#.google.cloud" + + ".vmmigration.v1.SourceB\003\340A\002\022\022\n\nrequest_i" + + "d\030\003 \001(\t\"g\n\023DeleteSourceRequest\0227\n\004name\030\001" + + " \001(\tB)\340A\002\372A#\n!vmmigration.googleapis.com" + + "/Source\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"i\n\025Fetc" + + "hInventoryRequest\0229\n\006source\030\001 \001(\tB)\340A\002\372A" + + "#\n!vmmigration.googleapis.com/Source\022\025\n\r" + + "force_refresh\030\002 \001(\010\"\230\004\n\017VmwareVmDetails\022" + + "\r\n\005vm_id\030\001 \001(\t\022\025\n\rdatacenter_id\030\002 \001(\t\022\036\n" + + "\026datacenter_description\030\003 \001(\t\022\014\n\004uuid\030\004 " + + "\001(\t\022\024\n\014display_name\030\005 \001(\t\022L\n\013power_state" + + "\030\006 \001(\01627.google.cloud.vmmigration.v1.Vmw" + + "areVmDetails.PowerState\022\021\n\tcpu_count\030\007 \001" + + "(\005\022\021\n\tmemory_mb\030\010 \001(\005\022\022\n\ndisk_count\030\t \001(" + + "\005\022\034\n\024committed_storage_mb\030\014 \001(\003\022\031\n\021guest" + + "_description\030\013 \001(\t\022Q\n\013boot_option\030\r \001(\0162" + + "7.google.cloud.vmmigration.v1.VmwareVmDe" + + "tails.BootOptionB\003\340A\003\"I\n\nPowerState\022\033\n\027P" + + "OWER_STATE_UNSPECIFIED\020\000\022\006\n\002ON\020\001\022\007\n\003OFF\020" + + "\002\022\r\n\tSUSPENDED\020\003\"<\n\nBootOption\022\033\n\027BOOT_O" + + "PTION_UNSPECIFIED\020\000\022\007\n\003EFI\020\001\022\010\n\004BIOS\020\002\"Q" + + "\n\020VmwareVmsDetails\022=\n\007details\030\001 \003(\0132,.go" + "ogle.cloud.vmmigration.v1.VmwareVmDetail" - + "s.BootOptionB\003\340A\003\"I\n\nPowerState\022\033\n\027POWER" - + "_STATE_UNSPECIFIED\020\000\022\006\n\002ON\020\001\022\007\n\003OFF\020\002\022\r\n" - + "\tSUSPENDED\020\003\"<\n\nBootOption\022\033\n\027BOOT_OPTIO" - + "N_UNSPECIFIED\020\000\022\007\n\003EFI\020\001\022\010\n\004BIOS\020\002\"Q\n\020Vm" - + "wareVmsDetails\022=\n\007details\030\001 \003(\0132,.google" - + ".cloud.vmmigration.v1.VmwareVmDetails\"\245\001" - + "\n\026FetchInventoryResponse\022H\n\nvmware_vms\030\001" - + " \001(\0132-.google.cloud.vmmigration.v1.Vmwar" - + "eVmsDetailsB\003\340A\003H\000\0224\n\013update_time\030\002 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003B\013\n\tSour" - + "ceVms\"\234\006\n\021UtilizationReport\022\021\n\004name\030\001 \001(" - + "\tB\003\340A\003\022\024\n\014display_name\030\002 \001(\t\022H\n\005state\030\003 " - + "\001(\01624.google.cloud.vmmigration.v1.Utiliz" - + "ationReport.StateB\003\340A\003\0223\n\nstate_time\030\004 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022&\n\005e" - + "rror\030\005 \001(\0132\022.google.rpc.StatusB\003\340A\003\0224\n\013c" - + "reate_time\030\006 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\022L\n\ntime_frame\030\007 \001(\01628.google.c" - + "loud.vmmigration.v1.UtilizationReport.Ti" - + "meFrame\0227\n\016frame_end_time\030\010 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\022\025\n\010vm_count\030\t \001" - + "(\005B\003\340A\003\022;\n\003vms\030\n \003(\0132..google.cloud.vmmi" - + "gration.v1.VmUtilizationInfo\"G\n\005State\022\025\n" - + "\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\r\n\tSU" - + "CCEEDED\020\002\022\n\n\006FAILED\020\003\"F\n\tTimeFrame\022\032\n\026TI" - + "ME_FRAME_UNSPECIFIED\020\000\022\010\n\004WEEK\020\001\022\t\n\005MONT" - + "H\020\002\022\010\n\004YEAR\020\003:\224\001\352A\220\001\n,vmmigration.google" - + "apis.com/UtilizationReport\022`projects/{pr" - + "oject}/locations/{location}/sources/{sou" - + "rce}/utilizationReports/{utilization_rep" - + "ort}\"\302\001\n\021VmUtilizationInfo\022I\n\021vmware_vm_" - + "details\030\001 \001(\0132,.google.cloud.vmmigration" - + ".v1.VmwareVmDetailsH\000\022\r\n\005vm_id\030\003 \001(\t\022F\n\013" - + "utilization\030\002 \001(\01321.google.cloud.vmmigra" - + "tion.v1.VmUtilizationMetricsB\013\n\tVmDetail" - + "s\"\230\002\n\024VmUtilizationMetrics\022\027\n\017cpu_max_pe" - + "rcent\030\t \001(\005\022\033\n\023cpu_average_percent\030\n \001(\005" - + "\022\032\n\022memory_max_percent\030\013 \001(\005\022\036\n\026memory_a" - + "verage_percent\030\014 \001(\005\022\035\n\025disk_io_rate_max" - + "_kbps\030\r \001(\003\022!\n\031disk_io_rate_average_kbps" - + "\030\016 \001(\003\022#\n\033network_throughput_max_kbps\030\017 " - + "\001(\003\022\'\n\037network_throughput_average_kbps\030\020" - + " \001(\003\"\211\002\n\035ListUtilizationReportsRequest\022D" - + "\n\006parent\030\001 \001(\tB4\340A\002\372A.\022,vmmigration.goog" - + "leapis.com/UtilizationReport\022E\n\004view\030\002 \001" - + "(\01622.google.cloud.vmmigration.v1.Utiliza" - + "tionReportViewB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003" - + "\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\002\022\023\n\006filter\030\005" - + " \001(\tB\003\340A\001\022\025\n\010order_by\030\006 \001(\tB\003\340A\001\"\252\001\n\036Lis" - + "tUtilizationReportsResponse\022P\n\023utilizati" - + "on_reports\030\001 \003(\0132..google.cloud.vmmigrat" - + "ion.v1.UtilizationReportB\003\340A\003\022\034\n\017next_pa" - + "ge_token\030\002 \001(\tB\003\340A\003\022\030\n\013unreachable\030\003 \003(\t" - + "B\003\340A\003\"\250\001\n\033GetUtilizationReportRequest\022B\n" - + "\004name\030\001 \001(\tB4\340A\002\372A.\n,vmmigration.googlea" - + "pis.com/UtilizationReport\022E\n\004view\030\002 \001(\0162" - + "2.google.cloud.vmmigration.v1.Utilizatio" - + "nReportViewB\003\340A\001\"\357\001\n\036CreateUtilizationRe" - + "portRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\022,vmm" - + "igration.googleapis.com/UtilizationRepor" - + "t\022O\n\022utilization_report\030\002 \001(\0132..google.c" - + "loud.vmmigration.v1.UtilizationReportB\003\340" - + "A\002\022\"\n\025utilization_report_id\030\003 \001(\tB\003\340A\002\022\022" - + "\n\nrequest_id\030\004 \001(\t\"}\n\036DeleteUtilizationR" - + "eportRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,vmmi" - + "gration.googleapis.com/UtilizationReport" - + "\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\260\001\n ListDatace" - + "nterConnectorsResponse\022T\n\025datacenter_con" - + "nectors\030\001 \003(\01320.google.cloud.vmmigration" - + ".v1.DatacenterConnectorB\003\340A\003\022\034\n\017next_pag" + + "s\"\240\001\n\026FetchInventoryResponse\022C\n\nvmware_v" + + "ms\030\001 \001(\0132-.google.cloud.vmmigration.v1.V" + + "mwareVmsDetailsH\000\0224\n\013update_time\030\002 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003B\013\n\tSourc" + + "eVms\"\234\006\n\021UtilizationReport\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\003\022\024\n\014display_name\030\002 \001(\t\022H\n\005state\030\003 \001" + + "(\01624.google.cloud.vmmigration.v1.Utiliza" + + "tionReport.StateB\003\340A\003\0223\n\nstate_time\030\004 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022&\n\005er" + + "ror\030\005 \001(\0132\022.google.rpc.StatusB\003\340A\003\0224\n\013cr" + + "eate_time\030\006 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022L\n\ntime_frame\030\007 \001(\01628.google.cl" + + "oud.vmmigration.v1.UtilizationReport.Tim" + + "eFrame\0227\n\016frame_end_time\030\010 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022\025\n\010vm_count\030\t \001(" + + "\005B\003\340A\003\022;\n\003vms\030\n \003(\0132..google.cloud.vmmig" + + "ration.v1.VmUtilizationInfo\"G\n\005State\022\025\n\021" + + "STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\r\n\tSUC" + + "CEEDED\020\002\022\n\n\006FAILED\020\003\"F\n\tTimeFrame\022\032\n\026TIM" + + "E_FRAME_UNSPECIFIED\020\000\022\010\n\004WEEK\020\001\022\t\n\005MONTH" + + "\020\002\022\010\n\004YEAR\020\003:\224\001\352A\220\001\n,vmmigration.googlea" + + "pis.com/UtilizationReport\022`projects/{pro" + + "ject}/locations/{location}/sources/{sour" + + "ce}/utilizationReports/{utilization_repo" + + "rt}\"\302\001\n\021VmUtilizationInfo\022I\n\021vmware_vm_d" + + "etails\030\001 \001(\0132,.google.cloud.vmmigration." + + "v1.VmwareVmDetailsH\000\022\r\n\005vm_id\030\003 \001(\t\022F\n\013u" + + "tilization\030\002 \001(\01321.google.cloud.vmmigrat" + + "ion.v1.VmUtilizationMetricsB\013\n\tVmDetails" + + "\"\230\002\n\024VmUtilizationMetrics\022\027\n\017cpu_max_per" + + "cent\030\t \001(\005\022\033\n\023cpu_average_percent\030\n \001(\005\022" + + "\032\n\022memory_max_percent\030\013 \001(\005\022\036\n\026memory_av" + + "erage_percent\030\014 \001(\005\022\035\n\025disk_io_rate_max_" + + "kbps\030\r \001(\003\022!\n\031disk_io_rate_average_kbps\030" + + "\016 \001(\003\022#\n\033network_throughput_max_kbps\030\017 \001" + + "(\003\022\'\n\037network_throughput_average_kbps\030\020 " + + "\001(\003\"\211\002\n\035ListUtilizationReportsRequest\022D\n" + + "\006parent\030\001 \001(\tB4\340A\002\372A.\022,vmmigration.googl" + + "eapis.com/UtilizationReport\022E\n\004view\030\002 \001(" + + "\01622.google.cloud.vmmigration.v1.Utilizat" + + "ionReportViewB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340" + + "A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\002\022\023\n\006filter\030\005 " + + "\001(\tB\003\340A\001\022\025\n\010order_by\030\006 \001(\tB\003\340A\001\"\252\001\n\036List" + + "UtilizationReportsResponse\022P\n\023utilizatio" + + "n_reports\030\001 \003(\0132..google.cloud.vmmigrati" + + "on.v1.UtilizationReportB\003\340A\003\022\034\n\017next_pag" + "e_token\030\002 \001(\tB\003\340A\003\022\030\n\013unreachable\030\003 \003(\tB" - + "\003\340A\003\"e\n\035GetDatacenterConnectorRequest\022D\n" - + "\004name\030\001 \001(\tB6\340A\002\372A0\n.vmmigration.googlea" - + "pis.com/DatacenterConnector\"\371\001\n CreateDa" - + "tacenterConnectorRequest\022F\n\006parent\030\001 \001(\t" - + "B6\340A\002\372A0\022.vmmigration.googleapis.com/Dat" - + "acenterConnector\022$\n\027datacenter_connector" - + "_id\030\002 \001(\tB\003\340A\002\022S\n\024datacenter_connector\030\003" - + " \001(\01320.google.cloud.vmmigration.v1.Datac" - + "enterConnectorB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"" - + "|\n DeleteDatacenterConnectorRequest\022D\n\004n" - + "ame\030\001 \001(\tB6\340A\002\372A0\n.vmmigration.googleapi" - + "s.com/DatacenterConnector\022\022\n\nrequest_id\030" - + "\002 \001(\t\"\306\001\n\037ListDatacenterConnectorsReques" - + "t\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.vmmigration.g" - + "oogleapis.com/DatacenterConnector\022\026\n\tpag" - + "e_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340" - + "A\002\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(" - + "\tB\003\340A\001\"\320\007\n\033ComputeEngineTargetDefaults\022\017" - + "\n\007vm_name\030\001 \001(\t\022E\n\016target_project\030\002 \001(\tB" - + "-\372A*\n(vmmigration.googleapis.com/TargetP" - + "roject\022\014\n\004zone\030\003 \001(\t\022\033\n\023machine_type_ser" - + "ies\030\004 \001(\t\022\024\n\014machine_type\030\005 \001(\t\022\024\n\014netwo" - + "rk_tags\030\006 \003(\t\022I\n\022network_interfaces\030\007 \003(" - + "\0132-.google.cloud.vmmigration.v1.NetworkI" - + "nterface\022\027\n\017service_account\030\010 \001(\t\022E\n\tdis" - + "k_type\030\t \001(\01622.google.cloud.vmmigration." - + "v1.ComputeEngineDiskType\022T\n\006labels\030\n \003(\013" - + "2D.google.cloud.vmmigration.v1.ComputeEn" - + "gineTargetDefaults.LabelsEntry\022K\n\014licens" - + "e_type\030\013 \001(\01625.google.cloud.vmmigration." - + "v1.ComputeEngineLicenseType\022I\n\017applied_l" - + "icense\030\014 \001(\0132+.google.cloud.vmmigration." - + "v1.AppliedLicenseB\003\340A\003\022J\n\022compute_schedu" - + "ling\030\r \001(\0132..google.cloud.vmmigration.v1" - + ".ComputeScheduling\022\023\n\013secure_boot\030\016 \001(\010\022" - + "N\n\013boot_option\030\017 \001(\01624.google.cloud.vmmi" - + "gration.v1.ComputeEngineBootOptionB\003\340A\003\022" - + "X\n\010metadata\030\020 \003(\0132F.google.cloud.vmmigra" - + "tion.v1.ComputeEngineTargetDefaults.Meta" - + "dataEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\032/\n\rMetadataEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\215\007\n\032ComputeEng" - + "ineTargetDetails\022\017\n\007vm_name\030\001 \001(\t\022\017\n\007pro" - + "ject\030\002 \001(\t\022\014\n\004zone\030\003 \001(\t\022\033\n\023machine_type" - + "_series\030\004 \001(\t\022\024\n\014machine_type\030\005 \001(\t\022\024\n\014n" - + "etwork_tags\030\006 \003(\t\022I\n\022network_interfaces\030" - + "\007 \003(\0132-.google.cloud.vmmigration.v1.Netw" - + "orkInterface\022\027\n\017service_account\030\010 \001(\t\022E\n" - + "\tdisk_type\030\t \001(\01622.google.cloud.vmmigrat" - + "ion.v1.ComputeEngineDiskType\022S\n\006labels\030\n" - + " \003(\0132C.google.cloud.vmmigration.v1.Compu" - + "teEngineTargetDetails.LabelsEntry\022K\n\014lic" - + "ense_type\030\013 \001(\01625.google.cloud.vmmigrati" - + "on.v1.ComputeEngineLicenseType\022D\n\017applie" - + "d_license\030\014 \001(\0132+.google.cloud.vmmigrati" - + "on.v1.AppliedLicense\022J\n\022compute_scheduli" - + "ng\030\r \001(\0132..google.cloud.vmmigration.v1.C" - + "omputeScheduling\022\023\n\013secure_boot\030\016 \001(\010\022I\n" - + "\013boot_option\030\017 \001(\01624.google.cloud.vmmigr" - + "ation.v1.ComputeEngineBootOption\022W\n\010meta" - + "data\030\020 \003(\0132E.google.cloud.vmmigration.v1" - + ".ComputeEngineTargetDetails.MetadataEntr" - + "y\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001\"a\n\020NetworkInterface\022\017\n" - + "\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\022\023\n\013in" - + "ternal_ip\030\003 \001(\t\022\023\n\013external_ip\030\004 \001(\t\"\240\001\n" - + "\016AppliedLicense\022>\n\004type\030\001 \001(\01620.google.c" - + "loud.vmmigration.v1.AppliedLicense.Type\022" - + "\022\n\nos_license\030\002 \001(\t\":\n\004Type\022\024\n\020TYPE_UNSP" - + "ECIFIED\020\000\022\010\n\004NONE\020\001\022\010\n\004PAYG\020\002\022\010\n\004BYOL\020\003\"" - + "\277\001\n\026SchedulingNodeAffinity\022\013\n\003key\030\001 \001(\t\022" - + "N\n\010operator\030\002 \001(\0162<.google.cloud.vmmigra" - + "tion.v1.SchedulingNodeAffinity.Operator\022" - + "\016\n\006values\030\003 \003(\t\"8\n\010Operator\022\030\n\024OPERATOR_" - + "UNSPECIFIED\020\000\022\006\n\002IN\020\001\022\n\n\006NOT_IN\020\002\"\335\003\n\021Co" - + "mputeScheduling\022]\n\023on_host_maintenance\030\001" - + " \001(\0162@.google.cloud.vmmigration.v1.Compu" - + "teScheduling.OnHostMaintenance\022P\n\014restar" - + "t_type\030\005 \001(\0162:.google.cloud.vmmigration." - + "v1.ComputeScheduling.RestartType\022L\n\017node" - + "_affinities\030\003 \003(\01323.google.cloud.vmmigra" - + "tion.v1.SchedulingNodeAffinity\022\025\n\rmin_no" - + "de_cpus\030\004 \001(\005\"T\n\021OnHostMaintenance\022#\n\037ON" - + "_HOST_MAINTENANCE_UNSPECIFIED\020\000\022\r\n\tTERMI" - + "NATE\020\001\022\013\n\007MIGRATE\020\002\"\\\n\013RestartType\022\034\n\030RE" - + "START_TYPE_UNSPECIFIED\020\000\022\025\n\021AUTOMATIC_RE" - + "START\020\001\022\030\n\024NO_AUTOMATIC_RESTART\020\002\"^\n\016Sch" - + "edulePolicy\0220\n\ridle_duration\030\001 \001(\0132\031.goo" - + "gle.protobuf.Duration\022\032\n\022skip_os_adaptat" - + "ion\030\002 \001(\010\"\321\001\n\030CreateMigratingVmRequest\022>" - + "\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&vmmigration.goog" - + "leapis.com/MigratingVm\022\034\n\017migrating_vm_i" - + "d\030\002 \001(\tB\003\340A\002\022C\n\014migrating_vm\030\003 \001(\0132(.goo" - + "gle.cloud.vmmigration.v1.MigratingVmB\003\340A" - + "\002\022\022\n\nrequest_id\030\004 \001(\t\"\266\001\n\027ListMigratingV" - + "msRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&vmmig" - + "ration.googleapis.com/MigratingVm\022\026\n\tpag" - + "e_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340" - + "A\002\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(" - + "\tB\003\340A\001\"\230\001\n\030ListMigratingVmsResponse\022D\n\rm" + + "\003\340A\003\"\250\001\n\033GetUtilizationReportRequest\022B\n\004" + + "name\030\001 \001(\tB4\340A\002\372A.\n,vmmigration.googleap" + + "is.com/UtilizationReport\022E\n\004view\030\002 \001(\01622" + + ".google.cloud.vmmigration.v1.Utilization" + + "ReportViewB\003\340A\001\"\357\001\n\036CreateUtilizationRep" + + "ortRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\022,vmmi" + + "gration.googleapis.com/UtilizationReport" + + "\022O\n\022utilization_report\030\002 \001(\0132..google.cl" + + "oud.vmmigration.v1.UtilizationReportB\003\340A" + + "\002\022\"\n\025utilization_report_id\030\003 \001(\tB\003\340A\002\022\022\n" + + "\nrequest_id\030\004 \001(\t\"}\n\036DeleteUtilizationRe" + + "portRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,vmmig" + + "ration.googleapis.com/UtilizationReport\022" + + "\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\260\001\n ListDatacen" + + "terConnectorsResponse\022T\n\025datacenter_conn" + + "ectors\030\001 \003(\01320.google.cloud.vmmigration." + + "v1.DatacenterConnectorB\003\340A\003\022\034\n\017next_page" + + "_token\030\002 \001(\tB\003\340A\003\022\030\n\013unreachable\030\003 \003(\tB\003" + + "\340A\003\"e\n\035GetDatacenterConnectorRequest\022D\n\004" + + "name\030\001 \001(\tB6\340A\002\372A0\n.vmmigration.googleap" + + "is.com/DatacenterConnector\"\371\001\n CreateDat" + + "acenterConnectorRequest\022F\n\006parent\030\001 \001(\tB" + + "6\340A\002\372A0\022.vmmigration.googleapis.com/Data" + + "centerConnector\022$\n\027datacenter_connector_" + + "id\030\002 \001(\tB\003\340A\002\022S\n\024datacenter_connector\030\003 " + + "\001(\01320.google.cloud.vmmigration.v1.Datace" + + "nterConnectorB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"|" + + "\n DeleteDatacenterConnectorRequest\022D\n\004na" + + "me\030\001 \001(\tB6\340A\002\372A0\n.vmmigration.googleapis" + + ".com/DatacenterConnector\022\022\n\nrequest_id\030\002" + + " \001(\t\"\203\001\n\027UpgradeApplianceRequest\022T\n\024data" + + "center_connector\030\001 \001(\tB6\340A\002\372A0\n.vmmigrat" + + "ion.googleapis.com/DatacenterConnector\022\022" + + "\n\nrequest_id\030\002 \001(\t\"\032\n\030UpgradeApplianceRe" + + "sponse\"\306\001\n\037ListDatacenterConnectorsReque" + + "st\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.vmmigration." + + "googleapis.com/DatacenterConnector\022\026\n\tpa" + + "ge_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003" + + "\340A\002\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001" + + "(\tB\003\340A\001\"\377\007\n\033ComputeEngineTargetDefaults\022" + + "\017\n\007vm_name\030\001 \001(\t\022E\n\016target_project\030\002 \001(\t" + + "B-\372A*\n(vmmigration.googleapis.com/Target" + + "Project\022\014\n\004zone\030\003 \001(\t\022\033\n\023machine_type_se" + + "ries\030\004 \001(\t\022\024\n\014machine_type\030\005 \001(\t\022\024\n\014netw" + + "ork_tags\030\006 \003(\t\022I\n\022network_interfaces\030\007 \003" + + "(\0132-.google.cloud.vmmigration.v1.Network" + + "Interface\022\027\n\017service_account\030\010 \001(\t\022E\n\tdi" + + "sk_type\030\t \001(\01622.google.cloud.vmmigration" + + ".v1.ComputeEngineDiskType\022T\n\006labels\030\n \003(" + + "\0132D.google.cloud.vmmigration.v1.ComputeE" + + "ngineTargetDefaults.LabelsEntry\022K\n\014licen" + + "se_type\030\013 \001(\01625.google.cloud.vmmigration" + + ".v1.ComputeEngineLicenseType\022I\n\017applied_" + + "license\030\014 \001(\0132+.google.cloud.vmmigration" + + ".v1.AppliedLicenseB\003\340A\003\022J\n\022compute_sched" + + "uling\030\r \001(\0132..google.cloud.vmmigration.v" + + "1.ComputeScheduling\022\023\n\013secure_boot\030\016 \001(\010" + + "\022N\n\013boot_option\030\017 \001(\01624.google.cloud.vmm" + + "igration.v1.ComputeEngineBootOptionB\003\340A\003" + + "\022X\n\010metadata\030\020 \003(\0132F.google.cloud.vmmigr" + + "ation.v1.ComputeEngineTargetDefaults.Met" + + "adataEntry\022\033\n\023additional_licenses\030\021 \003(\t\022" + + "\020\n\010hostname\030\022 \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032/\n\rMetadataEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\274\007\n\032Co" + + "mputeEngineTargetDetails\022\017\n\007vm_name\030\001 \001(" + + "\t\022\017\n\007project\030\002 \001(\t\022\014\n\004zone\030\003 \001(\t\022\033\n\023mach" + + "ine_type_series\030\004 \001(\t\022\024\n\014machine_type\030\005 " + + "\001(\t\022\024\n\014network_tags\030\006 \003(\t\022I\n\022network_int" + + "erfaces\030\007 \003(\0132-.google.cloud.vmmigration" + + ".v1.NetworkInterface\022\027\n\017service_account\030" + + "\010 \001(\t\022E\n\tdisk_type\030\t \001(\01622.google.cloud." + + "vmmigration.v1.ComputeEngineDiskType\022S\n\006" + + "labels\030\n \003(\0132C.google.cloud.vmmigration." + + "v1.ComputeEngineTargetDetails.LabelsEntr" + + "y\022K\n\014license_type\030\013 \001(\01625.google.cloud.v" + + "mmigration.v1.ComputeEngineLicenseType\022D" + + "\n\017applied_license\030\014 \001(\0132+.google.cloud.v" + + "mmigration.v1.AppliedLicense\022J\n\022compute_" + + "scheduling\030\r \001(\0132..google.cloud.vmmigrat" + + "ion.v1.ComputeScheduling\022\023\n\013secure_boot\030" + + "\016 \001(\010\022I\n\013boot_option\030\017 \001(\01624.google.clou" + + "d.vmmigration.v1.ComputeEngineBootOption" + + "\022W\n\010metadata\030\020 \003(\0132E.google.cloud.vmmigr" + + "ation.v1.ComputeEngineTargetDetails.Meta" + + "dataEntry\022\033\n\023additional_licenses\030\021 \003(\t\022\020" + + "\n\010hostname\030\022 \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032/\n\rMetadataEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"a\n\020Netw" + + "orkInterface\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetw" + + "ork\030\002 \001(\t\022\023\n\013internal_ip\030\003 \001(\t\022\023\n\013extern" + + "al_ip\030\004 \001(\t\"\240\001\n\016AppliedLicense\022>\n\004type\030\001" + + " \001(\01620.google.cloud.vmmigration.v1.Appli" + + "edLicense.Type\022\022\n\nos_license\030\002 \001(\t\":\n\004Ty" + + "pe\022\024\n\020TYPE_UNSPECIFIED\020\000\022\010\n\004NONE\020\001\022\010\n\004PA" + + "YG\020\002\022\010\n\004BYOL\020\003\"\277\001\n\026SchedulingNodeAffinit" + + "y\022\013\n\003key\030\001 \001(\t\022N\n\010operator\030\002 \001(\0162<.googl" + + "e.cloud.vmmigration.v1.SchedulingNodeAff" + + "inity.Operator\022\016\n\006values\030\003 \003(\t\"8\n\010Operat" + + "or\022\030\n\024OPERATOR_UNSPECIFIED\020\000\022\006\n\002IN\020\001\022\n\n\006" + + "NOT_IN\020\002\"\335\003\n\021ComputeScheduling\022]\n\023on_hos" + + "t_maintenance\030\001 \001(\0162@.google.cloud.vmmig" + + "ration.v1.ComputeScheduling.OnHostMainte" + + "nance\022P\n\014restart_type\030\005 \001(\0162:.google.clo" + + "ud.vmmigration.v1.ComputeScheduling.Rest" + + "artType\022L\n\017node_affinities\030\003 \003(\01323.googl" + + "e.cloud.vmmigration.v1.SchedulingNodeAff" + + "inity\022\025\n\rmin_node_cpus\030\004 \001(\005\"T\n\021OnHostMa" + + "intenance\022#\n\037ON_HOST_MAINTENANCE_UNSPECI" + + "FIED\020\000\022\r\n\tTERMINATE\020\001\022\013\n\007MIGRATE\020\002\"\\\n\013Re" + + "startType\022\034\n\030RESTART_TYPE_UNSPECIFIED\020\000\022" + + "\025\n\021AUTOMATIC_RESTART\020\001\022\030\n\024NO_AUTOMATIC_R" + + "ESTART\020\002\"^\n\016SchedulePolicy\0220\n\ridle_durat" + + "ion\030\001 \001(\0132\031.google.protobuf.Duration\022\032\n\022" + + "skip_os_adaptation\030\002 \001(\010\"\321\001\n\030CreateMigra" + + "tingVmRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&v" + + "mmigration.googleapis.com/MigratingVm\022\034\n" + + "\017migrating_vm_id\030\002 \001(\tB\003\340A\002\022C\n\014migrating" + + "_vm\030\003 \001(\0132(.google.cloud.vmmigration.v1." + + "MigratingVmB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"\367\001\n" + + "\027ListMigratingVmsRequest\022>\n\006parent\030\001 \001(\t" + + "B.\340A\002\372A(\022&vmmigration.googleapis.com/Mig" + + "ratingVm\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage" + + "_token\030\003 \001(\tB\003\340A\002\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025" + + "\n\010order_by\030\005 \001(\tB\003\340A\001\022?\n\004view\030\006 \001(\0162,.go" + + "ogle.cloud.vmmigration.v1.MigratingVmVie" + + "wB\003\340A\001\"\230\001\n\030ListMigratingVmsResponse\022D\n\rm" + "igrating_vms\030\001 \003(\0132(.google.cloud.vmmigr" + "ation.v1.MigratingVmB\003\340A\003\022\034\n\017next_page_t" + "oken\030\002 \001(\tB\003\340A\003\022\030\n\013unreachable\030\003 \003(\tB\003\340A" - + "\003\"U\n\025GetMigratingVmRequest\022<\n\004name\030\001 \001(\t" - + "B.\340A\002\372A(\n&vmmigration.googleapis.com/Mig" - + "ratingVm\"\244\001\n\030UpdateMigratingVmRequest\022/\n" - + "\013update_mask\030\001 \001(\0132\032.google.protobuf.Fie" - + "ldMask\022C\n\014migrating_vm\030\002 \001(\0132(.google.cl" - + "oud.vmmigration.v1.MigratingVmB\003\340A\002\022\022\n\nr" - + "equest_id\030\003 \001(\t\"X\n\030DeleteMigratingVmRequ" - + "est\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&vmmigration.g" - + "oogleapis.com/MigratingVm\"]\n\025StartMigrat" - + "ionRequest\022D\n\014migrating_vm\030\001 \001(\tB.\340A\002\372A(" - + "\n&vmmigration.googleapis.com/MigratingVm" - + "\"\030\n\026StartMigrationResponse\"]\n\025PauseMigra" - + "tionRequest\022D\n\014migrating_vm\030\001 \001(\tB.\340A\002\372A" - + "(\n&vmmigration.googleapis.com/MigratingV" - + "m\"\030\n\026PauseMigrationResponse\"^\n\026ResumeMig" - + "rationRequest\022D\n\014migrating_vm\030\001 \001(\tB.\340A\002" - + "\372A(\n&vmmigration.googleapis.com/Migratin" - + "gVm\"\031\n\027ResumeMigrationResponse\"`\n\030Finali" - + "zeMigrationRequest\022D\n\014migrating_vm\030\001 \001(\t" - + "B.\340A\002\372A(\n&vmmigration.googleapis.com/Mig" - + "ratingVm\"\033\n\031FinalizeMigrationResponse\"\247\002" - + "\n\rTargetProject\022\014\n\004name\030\001 \001(\t\022\017\n\007project" - + "\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\0224\n\013create_ti" - + "me\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\0224\n\013update_time\030\005 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003:v\352As\n(vmmigration.google" - + "apis.com/TargetProject\022Gprojects/{projec" - + "t}/locations/{location}/targetProjects/{" - + "target_project}\"Y\n\027GetTargetProjectReque" - + "st\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(vmmigration.go" - + "ogleapis.com/TargetProject\"\272\001\n\031ListTarge" - + "tProjectsRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*" - + "\022(vmmigration.googleapis.com/TargetProje" - + "ct\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token" - + "\030\003 \001(\tB\003\340A\002\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010orde" - + "r_by\030\005 \001(\tB\003\340A\001\"\236\001\n\032ListTargetProjectsRe" - + "sponse\022H\n\017target_projects\030\001 \003(\0132*.google" - + ".cloud.vmmigration.v1.TargetProjectB\003\340A\003" - + "\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\003\022\030\n\013unreac" - + "hable\030\003 \003(\tB\003\340A\003\"\333\001\n\032CreateTargetProject" + + "\003\"\226\001\n\025GetMigratingVmRequest\022<\n\004name\030\001 \001(" + + "\tB.\340A\002\372A(\n&vmmigration.googleapis.com/Mi" + + "gratingVm\022?\n\004view\030\002 \001(\0162,.google.cloud.v" + + "mmigration.v1.MigratingVmViewB\003\340A\001\"\244\001\n\030U" + + "pdateMigratingVmRequest\022/\n\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMask\022C\n\014migr" + + "ating_vm\030\002 \001(\0132(.google.cloud.vmmigratio" + + "n.v1.MigratingVmB\003\340A\002\022\022\n\nrequest_id\030\003 \001(" + + "\t\"X\n\030DeleteMigratingVmRequest\022<\n\004name\030\001 " + + "\001(\tB.\340A\002\372A(\n&vmmigration.googleapis.com/" + + "MigratingVm\"]\n\025StartMigrationRequest\022D\n\014" + + "migrating_vm\030\001 \001(\tB.\340A\002\372A(\n&vmmigration." + + "googleapis.com/MigratingVm\"\030\n\026StartMigra" + + "tionResponse\"]\n\025PauseMigrationRequest\022D\n" + + "\014migrating_vm\030\001 \001(\tB.\340A\002\372A(\n&vmmigration" + + ".googleapis.com/MigratingVm\"\030\n\026PauseMigr" + + "ationResponse\"^\n\026ResumeMigrationRequest\022" + + "D\n\014migrating_vm\030\001 \001(\tB.\340A\002\372A(\n&vmmigrati" + + "on.googleapis.com/MigratingVm\"\031\n\027ResumeM" + + "igrationResponse\"`\n\030FinalizeMigrationReq" + + "uest\022D\n\014migrating_vm\030\001 \001(\tB.\340A\002\372A(\n&vmmi" + + "gration.googleapis.com/MigratingVm\"\033\n\031Fi" + + "nalizeMigrationResponse\"\254\002\n\rTargetProjec" + + "t\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\017\n\007project\030\002 \001(\t\022\023\n" + + "\013description\030\003 \001(\t\0224\n\013create_time\030\004 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upda" + + "te_time\030\005 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003:v\352As\n(vmmigration.googleapis.com/" + + "TargetProject\022Gprojects/{project}/locati" + + "ons/{location}/targetProjects/{target_pr" + + "oject}\"Y\n\027GetTargetProjectRequest\022>\n\004nam" + + "e\030\001 \001(\tB0\340A\002\372A*\n(vmmigration.googleapis.", + "com/TargetProject\"\272\001\n\031ListTargetProjects" + "Request\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(vmmigra" - + "tion.googleapis.com/TargetProject\022\036\n\021tar" - + "get_project_id\030\002 \001(\tB\003\340A\002\022G\n\016target_proj" - + "ect\030\003 \001(\0132*.google.cloud.vmmigration.v1." - + "TargetProjectB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"\252" - + "\001\n\032UpdateTargetProjectRequest\022/\n\013update_" - + "mask\030\001 \001(\0132\032.google.protobuf.FieldMask\022G" - + "\n\016target_project\030\002 \001(\0132*.google.cloud.vm" - + "migration.v1.TargetProjectB\003\340A\002\022\022\n\nreque" - + "st_id\030\003 \001(\t\"u\n\032DeleteTargetProjectReques" - + "t\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(vmmigration.goo" - + "gleapis.com/TargetProject\022\027\n\nrequest_id\030" - + "\002 \001(\tB\003\340A\001\"\213\002\n\005Group\022\014\n\004name\030\001 \001(\t\0224\n\013cr" - + "eate_time\030\002 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\022\023\n\013description\030\004 " - + "\001(\t\022\024\n\014display_name\030\005 \001(\t:]\352AZ\n vmmigrat" - + "ion.googleapis.com/Group\0226projects/{proj" - + "ect}/locations/{location}/groups/{group}" - + "\"\252\001\n\021ListGroupsRequest\0228\n\006parent\030\001 \001(\tB(" - + "\340A\002\372A\"\022 vmmigration.googleapis.com/Group" - + "\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003" - + " \001(\tB\003\340A\002\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_" - + "by\030\005 \001(\tB\003\340A\001\"\205\001\n\022ListGroupsResponse\0227\n\006" - + "groups\030\001 \003(\0132\".google.cloud.vmmigration." - + "v1.GroupB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003", - "\340A\003\022\030\n\013unreachable\030\003 \003(\tB\003\340A\003\"I\n\017GetGrou" - + "pRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vmmigrat" - + "ion.googleapis.com/Group\"\261\001\n\022CreateGroup" - + "Request\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 vmmigra" - + "tion.googleapis.com/Group\022\025\n\010group_id\030\002 " - + "\001(\tB\003\340A\002\0226\n\005group\030\003 \001(\0132\".google.cloud.v" - + "mmigration.v1.GroupB\003\340A\002\022\022\n\nrequest_id\030\004" - + " \001(\t\"\221\001\n\022UpdateGroupRequest\022/\n\013update_ma" - + "sk\030\001 \001(\0132\032.google.protobuf.FieldMask\0226\n\005" - + "group\030\002 \001(\0132\".google.cloud.vmmigration.v" - + "1.GroupB\003\340A\002\022\022\n\nrequest_id\030\003 \001(\t\"e\n\022Dele" - + "teGroupRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vm" - + "migration.googleapis.com/Group\022\027\n\nreques" - + "t_id\030\002 \001(\tB\003\340A\001\"\226\001\n\030AddGroupMigrationReq" - + "uest\0227\n\005group\030\001 \001(\tB(\340A\002\372A\"\n vmmigration" - + ".googleapis.com/Group\022A\n\014migrating_vm\030\002 " - + "\001(\tB+\372A(\n&vmmigration.googleapis.com/Mig" - + "ratingVm\"\033\n\031AddGroupMigrationResponse\"\231\001" - + "\n\033RemoveGroupMigrationRequest\0227\n\005group\030\001" - + " \001(\tB(\340A\002\372A\"\n vmmigration.googleapis.com" - + "/Group\022A\n\014migrating_vm\030\002 \001(\tB+\372A(\n&vmmig" - + "ration.googleapis.com/MigratingVm\"\036\n\034Rem" - + "oveGroupMigrationResponse\"\314\001\n\027CreateCuto" - + "verJobRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%v" - + "mmigration.googleapis.com/CutoverJob\022\033\n\016" - + "cutover_job_id\030\002 \001(\tB\003\340A\002\022A\n\013cutover_job" - + "\030\003 \001(\0132\'.google.cloud.vmmigration.v1.Cut" - + "overJobB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"V\n\027Canc" - + "elCutoverJobRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A" - + "\'\n%vmmigration.googleapis.com/CutoverJob" - + "\"\032\n\030CancelCutoverJobResponse\"\264\001\n\026ListCut" - + "overJobsRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022" - + "%vmmigration.googleapis.com/CutoverJob\022\026" - + "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001" - + "(\tB\003\340A\002\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by" - + "\030\005 \001(\tB\003\340A\001\"\225\001\n\027ListCutoverJobsResponse\022" - + "B\n\014cutover_jobs\030\001 \003(\0132\'.google.cloud.vmm" - + "igration.v1.CutoverJobB\003\340A\003\022\034\n\017next_page" - + "_token\030\002 \001(\tB\003\340A\003\022\030\n\013unreachable\030\003 \003(\tB\003" - + "\340A\003\"S\n\024GetCutoverJobRequest\022;\n\004name\030\001 \001(" - + "\tB-\340A\002\372A\'\n%vmmigration.googleapis.com/Cu" - + "toverJob\"\200\002\n\021OperationMetadata\0224\n\013create" - + "_time\030\001 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004" - + "verb\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\013api_version\030\007 \001(\tB\003\340A\003\"\242\004\n\016Migratio" - + "nError\022H\n\004code\030\001 \001(\01625.google.cloud.vmmi" - + "gration.v1.MigrationError.ErrorCodeB\003\340A\003" - + "\0228\n\rerror_message\030\002 \001(\0132\034.google.rpc.Loc" - + "alizedMessageB\003\340A\003\0226\n\013action_item\030\003 \001(\0132" - + "\034.google.rpc.LocalizedMessageB\003\340A\003\022.\n\nhe" - + "lp_links\030\004 \003(\0132\025.google.rpc.Help.LinkB\003\340" - + "A\003\0223\n\nerror_time\030\005 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\"\356\001\n\tErrorCode\022\032\n\026ERROR_C" - + "ODE_UNSPECIFIED\020\000\022\021\n\rUNKNOWN_ERROR\020\001\022\033\n\027" - + "SOURCE_VALIDATION_ERROR\020\002\022\034\n\030SOURCE_REPL" - + "ICATION_ERROR\020\003\022\034\n\030TARGET_REPLICATION_ER" - + "ROR\020\004\022\027\n\023OS_ADAPTATION_ERROR\020\005\022\017\n\013CLONE_" - + "ERROR\020\006\022\021\n\rCUTOVER_ERROR\020\007\022\034\n\030UTILIZATIO" - + "N_REPORT_ERROR\020\010*U\n\025UtilizationReportVie" - + "w\022\'\n#UTILIZATION_REPORT_VIEW_UNSPECIFIED" - + "\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002*\261\001\n\025ComputeEngin" - + "eDiskType\022(\n$COMPUTE_ENGINE_DISK_TYPE_UN" - + "SPECIFIED\020\000\022%\n!COMPUTE_ENGINE_DISK_TYPE_" - + "STANDARD\020\001\022 \n\034COMPUTE_ENGINE_DISK_TYPE_S" - + "SD\020\002\022%\n!COMPUTE_ENGINE_DISK_TYPE_BALANCE" - + "D\020\003*\217\001\n\030ComputeEngineLicenseType\022\'\n#COMP" - + "UTE_ENGINE_LICENSE_TYPE_DEFAULT\020\000\022$\n COM" - + "PUTE_ENGINE_LICENSE_TYPE_PAYG\020\001\022$\n COMPU" - + "TE_ENGINE_LICENSE_TYPE_BYOL\020\002*\216\001\n\027Comput" - + "eEngineBootOption\022*\n&COMPUTE_ENGINE_BOOT" - + "_OPTION_UNSPECIFIED\020\000\022\"\n\036COMPUTE_ENGINE_" - + "BOOT_OPTION_EFI\020\001\022#\n\037COMPUTE_ENGINE_BOOT" - + "_OPTION_BIOS\020\0022\255M\n\013VmMigration\022\256\001\n\013ListS" - + "ources\022/.google.cloud.vmmigration.v1.Lis" - + "tSourcesRequest\0320.google.cloud.vmmigrati" - + "on.v1.ListSourcesResponse\"<\202\323\344\223\002-\022+/v1/{" - + "parent=projects/*/locations/*}/sources\332A" - + "\006parent\022\233\001\n\tGetSource\022-.google.cloud.vmm" - + "igration.v1.GetSourceRequest\032#.google.cl" - + "oud.vmmigration.v1.Source\":\202\323\344\223\002-\022+/v1/{" - + "name=projects/*/locations/*/sources/*}\332A" - + "\004name\022\324\001\n\014CreateSource\0220.google.cloud.vm" - + "migration.v1.CreateSourceRequest\032\035.googl" - + "e.longrunning.Operation\"s\202\323\344\223\0025\"+/v1/{pa" - + "rent=projects/*/locations/*}/sources:\006so" - + "urce\332A\027parent,source,source_id\312A\033\n\006Sourc" - + "e\022\021OperationMetadata\022\326\001\n\014UpdateSource\0220." - + "google.cloud.vmmigration.v1.UpdateSource" - + "Request\032\035.google.longrunning.Operation\"u" - + "\202\323\344\223\002<22/v1/{source.name=projects/*/loca" - + "tions/*/sources/*}:\006source\332A\022source,upda" - + "te_mask\312A\033\n\006Source\022\021OperationMetadata\022\310\001" - + "\n\014DeleteSource\0220.google.cloud.vmmigratio" - + "n.v1.DeleteSourceRequest\032\035.google.longru" - + "nning.Operation\"g\202\323\344\223\002-*+/v1/{name=proje" - + "cts/*/locations/*/sources/*}\332A\004name\312A*\n\025" - + "google.protobuf.Empty\022\021OperationMetadata" - + "\022\310\001\n\016FetchInventory\0222.google.cloud.vmmig" - + "ration.v1.FetchInventoryRequest\0323.google" - + ".cloud.vmmigration.v1.FetchInventoryResp" - + "onse\"M\202\323\344\223\002>\022\n\004name" + + "\030\001 \001(\tB0\340A\002\372A*\n(vmmigration.googleapis.c" + + "om/TargetProject\022\027\n\nrequest_id\030\002 \001(\tB\003\340A" + + "\001\"\220\002\n\005Group\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022\023\n\013description\030\004 \001(\t\022" + + "\024\n\014display_name\030\005 \001(\t:]\352AZ\n vmmigration." + + "googleapis.com/Group\0226projects/{project}" + + "/locations/{location}/groups/{group}\"\252\001\n" + + "\021ListGroupsRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372" + + "A\"\022 vmmigration.googleapis.com/Group\022\026\n\t" + + "page_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\t" + + "B\003\340A\002\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005" + + " \001(\tB\003\340A\001\"\205\001\n\022ListGroupsResponse\0227\n\006grou" + + "ps\030\001 \003(\0132\".google.cloud.vmmigration.v1.G" + + "roupB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\003\022" + + "\030\n\013unreachable\030\003 \003(\tB\003\340A\003\"I\n\017GetGroupReq" + + "uest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vmmigration." + + "googleapis.com/Group\"\261\001\n\022CreateGroupRequ" + + "est\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 vmmigration" + + ".googleapis.com/Group\022\025\n\010group_id\030\002 \001(\tB" + + "\003\340A\002\0226\n\005group\030\003 \001(\0132\".google.cloud.vmmig" + + "ration.v1.GroupB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t" + + "\"\221\001\n\022UpdateGroupRequest\022/\n\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMask\0226\n\005grou" + + "p\030\002 \001(\0132\".google.cloud.vmmigration.v1.Gr" + + "oupB\003\340A\002\022\022\n\nrequest_id\030\003 \001(\t\"e\n\022DeleteGr" + + "oupRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vmmigr" + + "ation.googleapis.com/Group\022\027\n\nrequest_id" + + "\030\002 \001(\tB\003\340A\001\"\226\001\n\030AddGroupMigrationRequest" + + "\0227\n\005group\030\001 \001(\tB(\340A\002\372A\"\n vmmigration.goo" + + "gleapis.com/Group\022A\n\014migrating_vm\030\002 \001(\tB" + + "+\372A(\n&vmmigration.googleapis.com/Migrati" + + "ngVm\"\033\n\031AddGroupMigrationResponse\"\231\001\n\033Re" + + "moveGroupMigrationRequest\0227\n\005group\030\001 \001(\t" + + "B(\340A\002\372A\"\n vmmigration.googleapis.com/Gro" + + "up\022A\n\014migrating_vm\030\002 \001(\tB+\372A(\n&vmmigrati" + + "on.googleapis.com/MigratingVm\"\036\n\034RemoveG" + + "roupMigrationResponse\"\314\001\n\027CreateCutoverJ" + + "obRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%vmmig" + + "ration.googleapis.com/CutoverJob\022\033\n\016cuto" + + "ver_job_id\030\002 \001(\tB\003\340A\002\022A\n\013cutover_job\030\003 \001" + + "(\0132\'.google.cloud.vmmigration.v1.Cutover" + + "JobB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"V\n\027CancelCu" + + "toverJobRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%v" + + "mmigration.googleapis.com/CutoverJob\"\032\n\030" + + "CancelCutoverJobResponse\"\264\001\n\026ListCutover" + + "JobsRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%vmm" + + "igration.googleapis.com/CutoverJob\022\026\n\tpa" + + "ge_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003" + + "\340A\002\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001" + + "(\tB\003\340A\001\"\225\001\n\027ListCutoverJobsResponse\022B\n\014c" + + "utover_jobs\030\001 \003(\0132\'.google.cloud.vmmigra" + + "tion.v1.CutoverJobB\003\340A\003\022\034\n\017next_page_tok" + + "en\030\002 \001(\tB\003\340A\003\022\030\n\013unreachable\030\003 \003(\tB\003\340A\003\"" + + "S\n\024GetCutoverJobRequest\022;\n\004name\030\001 \001(\tB-\340" + + "A\002\372A\'\n%vmmigration.googleapis.com/Cutove" + + "rJob\"\200\002\n\021OperationMetadata\0224\n\013create_tim" + + "e\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estampB\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" + + "\013api_version\030\007 \001(\tB\003\340A\003\"\277\004\n\016MigrationErr" + + "or\022H\n\004code\030\001 \001(\01625.google.cloud.vmmigrat" + + "ion.v1.MigrationError.ErrorCodeB\003\340A\003\0228\n\r" + + "error_message\030\002 \001(\0132\034.google.rpc.Localiz" + + "edMessageB\003\340A\003\0226\n\013action_item\030\003 \001(\0132\034.go" + + "ogle.rpc.LocalizedMessageB\003\340A\003\022.\n\nhelp_l" + + "inks\030\004 \003(\0132\025.google.rpc.Help.LinkB\003\340A\003\0223" + + "\n\nerror_time\030\005 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\"\213\002\n\tErrorCode\022\032\n\026ERROR_CODE_" + + "UNSPECIFIED\020\000\022\021\n\rUNKNOWN_ERROR\020\001\022\033\n\027SOUR" + + "CE_VALIDATION_ERROR\020\002\022\034\n\030SOURCE_REPLICAT" + + "ION_ERROR\020\003\022\034\n\030TARGET_REPLICATION_ERROR\020" + + "\004\022\027\n\023OS_ADAPTATION_ERROR\020\005\022\017\n\013CLONE_ERRO" + + "R\020\006\022\021\n\rCUTOVER_ERROR\020\007\022\034\n\030UTILIZATION_RE" + + "PORT_ERROR\020\010\022\033\n\027APPLIANCE_UPGRADE_ERROR\020" + + "\t*U\n\025UtilizationReportView\022\'\n#UTILIZATIO" + + "N_REPORT_VIEW_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010" + + "\n\004FULL\020\002*m\n\017MigratingVmView\022!\n\035MIGRATING" + + "_VM_VIEW_UNSPECIFIED\020\000\022\033\n\027MIGRATING_VM_V" + + "IEW_BASIC\020\001\022\032\n\026MIGRATING_VM_VIEW_FULL\020\002*" + + "\261\001\n\025ComputeEngineDiskType\022(\n$COMPUTE_ENG" + + "INE_DISK_TYPE_UNSPECIFIED\020\000\022%\n!COMPUTE_E" + + "NGINE_DISK_TYPE_STANDARD\020\001\022 \n\034COMPUTE_EN" + + "GINE_DISK_TYPE_SSD\020\002\022%\n!COMPUTE_ENGINE_D" + + "ISK_TYPE_BALANCED\020\003*\217\001\n\030ComputeEngineLic" + + "enseType\022\'\n#COMPUTE_ENGINE_LICENSE_TYPE_" + + "DEFAULT\020\000\022$\n COMPUTE_ENGINE_LICENSE_TYPE" + + "_PAYG\020\001\022$\n COMPUTE_ENGINE_LICENSE_TYPE_B" + + "YOL\020\002*\216\001\n\027ComputeEngineBootOption\022*\n&COM" + + "PUTE_ENGINE_BOOT_OPTION_UNSPECIFIED\020\000\022\"\n" + + "\036COMPUTE_ENGINE_BOOT_OPTION_EFI\020\001\022#\n\037COM" + + "PUTE_ENGINE_BOOT_OPTION_BIOS\020\0022\270O\n\013VmMig" + + "ration\022\256\001\n\013ListSources\022/.google.cloud.vm" + + "migration.v1.ListSourcesRequest\0320.google" + + ".cloud.vmmigration.v1.ListSourcesRespons" + + "e\"<\202\323\344\223\002-\022+/v1/{parent=projects/*/locati" + + "ons/*}/sources\332A\006parent\022\233\001\n\tGetSource\022-." + + "google.cloud.vmmigration.v1.GetSourceReq" + + "uest\032#.google.cloud.vmmigration.v1.Sourc" + + "e\":\202\323\344\223\002-\022+/v1/{name=projects/*/location" + + "s/*/sources/*}\332A\004name\022\324\001\n\014CreateSource\0220" + + ".google.cloud.vmmigration.v1.CreateSourc" + + "eRequest\032\035.google.longrunning.Operation\"" + + "s\202\323\344\223\0025\"+/v1/{parent=projects/*/location" + + "s/*}/sources:\006source\332A\027parent,source,sou" + + "rce_id\312A\033\n\006Source\022\021OperationMetadata\022\326\001\n" + + "\014UpdateSource\0220.google.cloud.vmmigration" + + ".v1.UpdateSourceRequest\032\035.google.longrun" + + "ning.Operation\"u\202\323\344\223\002<22/v1/{source.name" + + "=projects/*/locations/*/sources/*}:\006sour" + + "ce\332A\022source,update_mask\312A\033\n\006Source\022\021Oper" + + "ationMetadata\022\310\001\n\014DeleteSource\0220.google." + + "cloud.vmmigration.v1.DeleteSourceRequest" + + "\032\035.google.longrunning.Operation\"g\202\323\344\223\002-*" + + "+/v1/{name=projects/*/locations/*/source" + + "s/*}\332A\004name\312A*\n\025google.protobuf.Empty\022\021O" + + "perationMetadata\022\310\001\n\016FetchInventory\0222.go" + + "ogle.cloud.vmmigration.v1.FetchInventory" + + "Request\0323.google.cloud.vmmigration.v1.Fe" + + "tchInventoryResponse\"M\202\323\344\223\002>\022 - * Input only. The credentials password. This is write only and can not be read in a GET - * operation. + * Input only. The credentials password. This is write only and can not be + * read in a GET operation. *
* * string password = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -217,8 +217,8 @@ public java.lang.String getPassword() { * * *
-   * Input only. The credentials password. This is write only and can not be read in a GET
-   * operation.
+   * Input only. The credentials password. This is write only and can not be
+   * read in a GET operation.
    * 
* * string password = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -814,8 +814,8 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { * * *
-     * Input only. The credentials password. This is write only and can not be read in a GET
-     * operation.
+     * Input only. The credentials password. This is write only and can not be
+     * read in a GET operation.
      * 
* * string password = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -837,8 +837,8 @@ public java.lang.String getPassword() { * * *
-     * Input only. The credentials password. This is write only and can not be read in a GET
-     * operation.
+     * Input only. The credentials password. This is write only and can not be
+     * read in a GET operation.
      * 
* * string password = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -860,8 +860,8 @@ public com.google.protobuf.ByteString getPasswordBytes() { * * *
-     * Input only. The credentials password. This is write only and can not be read in a GET
-     * operation.
+     * Input only. The credentials password. This is write only and can not be
+     * read in a GET operation.
      * 
* * string password = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -882,8 +882,8 @@ public Builder setPassword(java.lang.String value) { * * *
-     * Input only. The credentials password. This is write only and can not be read in a GET
-     * operation.
+     * Input only. The credentials password. This is write only and can not be
+     * read in a GET operation.
      * 
* * string password = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -900,8 +900,8 @@ public Builder clearPassword() { * * *
-     * Input only. The credentials password. This is write only and can not be read in a GET
-     * operation.
+     * Input only. The credentials password. This is write only and can not be
+     * read in a GET operation.
      * 
* * string password = 2 [(.google.api.field_behavior) = INPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareSourceDetailsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareSourceDetailsOrBuilder.java index 76fc6ebbd21e..28517f7fedba 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareSourceDetailsOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareSourceDetailsOrBuilder.java @@ -52,8 +52,8 @@ public interface VmwareSourceDetailsOrBuilder * * *
-   * Input only. The credentials password. This is write only and can not be read in a GET
-   * operation.
+   * Input only. The credentials password. This is write only and can not be
+   * read in a GET operation.
    * 
* * string password = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -65,8 +65,8 @@ public interface VmwareSourceDetailsOrBuilder * * *
-   * Input only. The credentials password. This is write only and can not be read in a GET
-   * operation.
+   * Input only. The credentials password. This is write only and can not be
+   * read in a GET operation.
    * 
* * string password = 2 [(.google.api.field_behavior) = INPUT_ONLY]; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareVmDetails.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareVmDetails.java index 9ca188bb97f7..5cdd4b77bdec 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareVmDetails.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareVmDetails.java @@ -889,7 +889,7 @@ public long getCommittedStorageMb() { * *
    * The VM's OS. See for example
-   * https://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
+   * https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
    * for types of strings this might hold.
    * 
* @@ -914,7 +914,7 @@ public java.lang.String getGuestDescription() { * *
    * The VM's OS. See for example
-   * https://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
+   * https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
    * for types of strings this might hold.
    * 
* @@ -2314,7 +2314,7 @@ public Builder clearCommittedStorageMb() { * *
      * The VM's OS. See for example
-     * https://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
+     * https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
      * for types of strings this might hold.
      * 
* @@ -2338,7 +2338,7 @@ public java.lang.String getGuestDescription() { * *
      * The VM's OS. See for example
-     * https://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
+     * https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
      * for types of strings this might hold.
      * 
* @@ -2362,7 +2362,7 @@ public com.google.protobuf.ByteString getGuestDescriptionBytes() { * *
      * The VM's OS. See for example
-     * https://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
+     * https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
      * for types of strings this might hold.
      * 
* @@ -2385,7 +2385,7 @@ public Builder setGuestDescription(java.lang.String value) { * *
      * The VM's OS. See for example
-     * https://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
+     * https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
      * for types of strings this might hold.
      * 
* @@ -2404,7 +2404,7 @@ public Builder clearGuestDescription() { * *
      * The VM's OS. See for example
-     * https://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
+     * https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
      * for types of strings this might hold.
      * 
* diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareVmDetailsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareVmDetailsOrBuilder.java index b595a4adf2ed..610f70a82292 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareVmDetailsOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareVmDetailsOrBuilder.java @@ -232,7 +232,7 @@ public interface VmwareVmDetailsOrBuilder * *
    * The VM's OS. See for example
-   * https://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
+   * https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
    * for types of strings this might hold.
    * 
* @@ -246,7 +246,7 @@ public interface VmwareVmDetailsOrBuilder * *
    * The VM's OS. See for example
-   * https://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
+   * https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
    * for types of strings this might hold.
    * 
* diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/proto/google/cloud/vmmigration/v1/vmmigration.proto b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/proto/google/cloud/vmmigration/v1/vmmigration.proto index 4b2a4e8f78b3..d5dfe9e0ddc5 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/proto/google/cloud/vmmigration/v1/vmmigration.proto +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/proto/google/cloud/vmmigration/v1/vmmigration.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. @@ -38,7 +38,8 @@ option ruby_package = "Google::Cloud::VMMigration::V1"; // VM Migration Service service VmMigration { option (google.api.default_host) = "vmmigration.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Lists Sources in a given project and location. rpc ListSources(ListSourcesRequest) returns (ListSourcesResponse) { @@ -107,7 +108,8 @@ service VmMigration { } // Lists Utilization Reports of the given Source. - rpc ListUtilizationReports(ListUtilizationReportsRequest) returns (ListUtilizationReportsResponse) { + rpc ListUtilizationReports(ListUtilizationReportsRequest) + returns (ListUtilizationReportsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/sources/*}/utilizationReports" }; @@ -115,7 +117,8 @@ service VmMigration { } // Gets a single Utilization Report. - rpc GetUtilizationReport(GetUtilizationReportRequest) returns (UtilizationReport) { + rpc GetUtilizationReport(GetUtilizationReportRequest) + returns (UtilizationReport) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/sources/*/utilizationReports/*}" }; @@ -123,12 +126,14 @@ service VmMigration { } // Creates a new UtilizationReport. - rpc CreateUtilizationReport(CreateUtilizationReportRequest) returns (google.longrunning.Operation) { + rpc CreateUtilizationReport(CreateUtilizationReportRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*/sources/*}/utilizationReports" body: "utilization_report" }; - option (google.api.method_signature) = "parent,utilization_report,utilization_report_id"; + option (google.api.method_signature) = + "parent,utilization_report,utilization_report_id"; option (google.longrunning.operation_info) = { response_type: "UtilizationReport" metadata_type: "OperationMetadata" @@ -136,7 +141,8 @@ service VmMigration { } // Deletes a single Utilization Report. - rpc DeleteUtilizationReport(DeleteUtilizationReportRequest) returns (google.longrunning.Operation) { + rpc DeleteUtilizationReport(DeleteUtilizationReportRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/sources/*/utilizationReports/*}" }; @@ -148,7 +154,8 @@ service VmMigration { } // Lists DatacenterConnectors in a given Source. - rpc ListDatacenterConnectors(ListDatacenterConnectorsRequest) returns (ListDatacenterConnectorsResponse) { + rpc ListDatacenterConnectors(ListDatacenterConnectorsRequest) + returns (ListDatacenterConnectorsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/sources/*}/datacenterConnectors" }; @@ -156,7 +163,8 @@ service VmMigration { } // Gets details of a single DatacenterConnector. - rpc GetDatacenterConnector(GetDatacenterConnectorRequest) returns (DatacenterConnector) { + rpc GetDatacenterConnector(GetDatacenterConnectorRequest) + returns (DatacenterConnector) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/sources/*/datacenterConnectors/*}" }; @@ -164,12 +172,14 @@ service VmMigration { } // Creates a new DatacenterConnector in a given Source. - rpc CreateDatacenterConnector(CreateDatacenterConnectorRequest) returns (google.longrunning.Operation) { + rpc CreateDatacenterConnector(CreateDatacenterConnectorRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*/sources/*}/datacenterConnectors" body: "datacenter_connector" }; - option (google.api.method_signature) = "parent,datacenter_connector,datacenter_connector_id"; + option (google.api.method_signature) = + "parent,datacenter_connector,datacenter_connector_id"; option (google.longrunning.operation_info) = { response_type: "DatacenterConnector" metadata_type: "OperationMetadata" @@ -177,7 +187,8 @@ service VmMigration { } // Deletes a single DatacenterConnector. - rpc DeleteDatacenterConnector(DeleteDatacenterConnectorRequest) returns (google.longrunning.Operation) { + rpc DeleteDatacenterConnector(DeleteDatacenterConnectorRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/sources/*/datacenterConnectors/*}" }; @@ -188,13 +199,29 @@ service VmMigration { }; } + // Upgrades the appliance relate to this DatacenterConnector to the in-place + // updateable version. + rpc UpgradeAppliance(UpgradeApplianceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{datacenter_connector=projects/*/locations/*/sources/*/datacenterConnectors/*}:upgradeAppliance" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "UpgradeApplianceResponse" + metadata_type: "OperationMetadata" + }; + } + // Creates a new MigratingVm in a given Source. - rpc CreateMigratingVm(CreateMigratingVmRequest) returns (google.longrunning.Operation) { + rpc CreateMigratingVm(CreateMigratingVmRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*/sources/*}/migratingVms" body: "migrating_vm" }; - option (google.api.method_signature) = "parent,migrating_vm,migrating_vm_id"; + option (google.api.method_signature) = + "parent,migrating_vm,migrating_vm_id"; option (google.longrunning.operation_info) = { response_type: "MigratingVm" metadata_type: "OperationMetadata" @@ -202,7 +229,8 @@ service VmMigration { } // Lists MigratingVms in a given Source. - rpc ListMigratingVms(ListMigratingVmsRequest) returns (ListMigratingVmsResponse) { + rpc ListMigratingVms(ListMigratingVmsRequest) + returns (ListMigratingVmsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/sources/*}/migratingVms" }; @@ -218,7 +246,8 @@ service VmMigration { } // Updates the parameters of a single MigratingVm. - rpc UpdateMigratingVm(UpdateMigratingVmRequest) returns (google.longrunning.Operation) { + rpc UpdateMigratingVm(UpdateMigratingVmRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{migrating_vm.name=projects/*/locations/*/sources/*/migratingVms/*}" body: "migrating_vm" @@ -231,7 +260,8 @@ service VmMigration { } // Deletes a single MigratingVm. - rpc DeleteMigratingVm(DeleteMigratingVmRequest) returns (google.longrunning.Operation) { + rpc DeleteMigratingVm(DeleteMigratingVmRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/sources/*/migratingVms/*}" }; @@ -244,7 +274,8 @@ service VmMigration { // Starts migration for a VM. Starts the process of uploading // data and creating snapshots, in replication cycles scheduled by the policy. - rpc StartMigration(StartMigrationRequest) returns (google.longrunning.Operation) { + rpc StartMigration(StartMigrationRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{migrating_vm=projects/*/locations/*/sources/*/migratingVms/*}:startMigration" body: "*" @@ -260,7 +291,8 @@ service VmMigration { // the process of uploading data and creating snapshots; when called on a // completed cut-over migration, will update the migration to active state and // start the process of uploading data and creating snapshots. - rpc ResumeMigration(ResumeMigrationRequest) returns (google.longrunning.Operation) { + rpc ResumeMigration(ResumeMigrationRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{migrating_vm=projects/*/locations/*/sources/*/migratingVms/*}:resumeMigration" body: "*" @@ -274,7 +306,8 @@ service VmMigration { // Pauses a migration for a VM. If cycle tasks are running they will be // cancelled, preserving source task data. Further replication cycles will not // be triggered while the VM is paused. - rpc PauseMigration(PauseMigrationRequest) returns (google.longrunning.Operation) { + rpc PauseMigration(PauseMigrationRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{migrating_vm=projects/*/locations/*/sources/*/migratingVms/*}:pauseMigration" body: "*" @@ -287,7 +320,8 @@ service VmMigration { // Marks a migration as completed, deleting migration resources that are no // longer being used. Only applicable after cutover is done. - rpc FinalizeMigration(FinalizeMigrationRequest) returns (google.longrunning.Operation) { + rpc FinalizeMigration(FinalizeMigrationRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{migrating_vm=projects/*/locations/*/sources/*/migratingVms/*}:finalizeMigration" body: "*" @@ -300,7 +334,8 @@ service VmMigration { } // Initiates a Clone of a specific migrating VM. - rpc CreateCloneJob(CreateCloneJobRequest) returns (google.longrunning.Operation) { + rpc CreateCloneJob(CreateCloneJobRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*/sources/*/migratingVms/*}/cloneJobs" body: "clone_job" @@ -313,7 +348,8 @@ service VmMigration { } // Initiates the cancellation of a running clone job. - rpc CancelCloneJob(CancelCloneJobRequest) returns (google.longrunning.Operation) { + rpc CancelCloneJob(CancelCloneJobRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/sources/*/migratingVms/*/cloneJobs/*}:cancel" body: "*" @@ -344,7 +380,8 @@ service VmMigration { // Initiates a Cutover of a specific migrating VM. // The returned LRO is completed when the cutover job resource is created // and the job is initiated. - rpc CreateCutoverJob(CreateCutoverJobRequest) returns (google.longrunning.Operation) { + rpc CreateCutoverJob(CreateCutoverJobRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*/sources/*/migratingVms/*}/cutoverJobs" body: "cutover_job" @@ -357,7 +394,8 @@ service VmMigration { } // Initiates the cancellation of a running cutover job. - rpc CancelCutoverJob(CancelCutoverJobRequest) returns (google.longrunning.Operation) { + rpc CancelCutoverJob(CancelCutoverJobRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/sources/*/migratingVms/*/cutoverJobs/*}:cancel" body: "*" @@ -370,7 +408,8 @@ service VmMigration { } // Lists CutoverJobs of a given migrating VM. - rpc ListCutoverJobs(ListCutoverJobsRequest) returns (ListCutoverJobsResponse) { + rpc ListCutoverJobs(ListCutoverJobsRequest) + returns (ListCutoverJobsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/sources/*/migratingVms/*}/cutoverJobs" }; @@ -440,7 +479,8 @@ service VmMigration { } // Adds a MigratingVm to a Group. - rpc AddGroupMigration(AddGroupMigrationRequest) returns (google.longrunning.Operation) { + rpc AddGroupMigration(AddGroupMigrationRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{group=projects/*/locations/*/groups/*}:addGroupMigration" body: "*" @@ -453,7 +493,8 @@ service VmMigration { } // Removes a MigratingVm from a Group. - rpc RemoveGroupMigration(RemoveGroupMigrationRequest) returns (google.longrunning.Operation) { + rpc RemoveGroupMigration(RemoveGroupMigrationRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{group=projects/*/locations/*/groups/*}:removeGroupMigration" body: "*" @@ -469,7 +510,8 @@ service VmMigration { // // NOTE: TargetProject is a global resource; hence the only supported value // for location is `global`. - rpc ListTargetProjects(ListTargetProjectsRequest) returns (ListTargetProjectsResponse) { + rpc ListTargetProjects(ListTargetProjectsRequest) + returns (ListTargetProjectsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/targetProjects" }; @@ -491,12 +533,14 @@ service VmMigration { // // NOTE: TargetProject is a global resource; hence the only supported value // for location is `global`. - rpc CreateTargetProject(CreateTargetProjectRequest) returns (google.longrunning.Operation) { + rpc CreateTargetProject(CreateTargetProjectRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/targetProjects" body: "target_project" }; - option (google.api.method_signature) = "parent,target_project,target_project_id"; + option (google.api.method_signature) = + "parent,target_project,target_project_id"; option (google.longrunning.operation_info) = { response_type: "TargetProject" metadata_type: "OperationMetadata" @@ -507,7 +551,8 @@ service VmMigration { // // NOTE: TargetProject is a global resource; hence the only supported value // for location is `global`. - rpc UpdateTargetProject(UpdateTargetProjectRequest) returns (google.longrunning.Operation) { + rpc UpdateTargetProject(UpdateTargetProjectRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{target_project.name=projects/*/locations/*/targetProjects/*}" body: "target_project" @@ -523,7 +568,8 @@ service VmMigration { // // NOTE: TargetProject is a global resource; hence the only supported value // for location is `global`. - rpc DeleteTargetProject(DeleteTargetProjectRequest) returns (google.longrunning.Operation) { + rpc DeleteTargetProject(DeleteTargetProjectRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/targetProjects/*}" }; @@ -535,16 +581,6 @@ service VmMigration { } } -// ReplicationCycle contains information about the current replication cycle -// status. -message ReplicationCycle { - // The time the replication cycle has started. - google.protobuf.Timestamp start_time = 1; - - // The current progress in percentage of this cycle. - int32 progress_percent = 5; -} - // Controls the level of details of a Utilization Report. enum UtilizationReportView { // The default / unset value. @@ -560,11 +596,18 @@ enum UtilizationReportView { FULL = 2; } -// ReplicationSync contain information about the last replica sync to the cloud. -message ReplicationSync { - // The most updated snapshot created time in the source that finished - // replication. - google.protobuf.Timestamp last_sync_time = 1; +// Controls the level of details of a Migrating VM. +enum MigratingVmView { + // View is unspecified. The API will fallback to the default value. + MIGRATING_VM_VIEW_UNSPECIFIED = 0; + + // Get the migrating VM basic details. + // The basic details do not include the recent clone jobs and recent cutover + // jobs lists. + MIGRATING_VM_VIEW_BASIC = 1; + + // Include everything. + MIGRATING_VM_VIEW_FULL = 2; } // Types of disks supported for Compute Engine VM. @@ -607,6 +650,23 @@ enum ComputeEngineBootOption { COMPUTE_ENGINE_BOOT_OPTION_BIOS = 2; } +// ReplicationCycle contains information about the current replication cycle +// status. +message ReplicationCycle { + // The time the replication cycle has started. + google.protobuf.Timestamp start_time = 1; + + // The current progress in percentage of this cycle. + int32 progress_percent = 5; +} + +// ReplicationSync contain information about the last replica sync to the cloud. +message ReplicationSync { + // The most updated snapshot created time in the source that finished + // replication. + google.protobuf.Timestamp last_sync_time = 1; +} + // MigratingVm describes the VM that will be migrated from a Source environment // and its replication state. message MigratingVm { @@ -684,28 +744,33 @@ message MigratingVm { // The replication schedule policy. SchedulePolicy policy = 8; - // Output only. The time the migrating VM was created (this refers to this resource and not - // to the time it was installed in the source). - google.protobuf.Timestamp create_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The time the migrating VM was created (this refers to this + // resource and not to the time it was installed in the source). + google.protobuf.Timestamp create_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last time the migrating VM resource was updated. - google.protobuf.Timestamp update_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The most updated snapshot created time in the source that finished - // replication. + // Output only. The most updated snapshot created time in the source that + // finished replication. ReplicationSync last_sync = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. State of the MigratingVm. State state = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last time the migrating VM state was updated. - google.protobuf.Timestamp state_time = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp state_time = 22 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The percentage progress of the current running replication cycle. - ReplicationCycle current_sync_info = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The percentage progress of the current running replication + // cycle. + ReplicationCycle current_sync_info = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The group this migrating vm is included in, if any. The group is - // represented by the full path of the appropriate + // Output only. The group this migrating vm is included in, if any. The group + // is represented by the full path of the appropriate // [Group][google.cloud.vmmigration.v1.Group] resource. string group = 15 [ (google.api.field_behavior) = OUTPUT_ONLY, @@ -717,9 +782,25 @@ message MigratingVm { // The labels of the migrating VM. map labels = 16; - // Output only. Provides details on the state of the Migrating VM in case of an - // error in replication. + // Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob] + // performed on the migrating VM. This field holds the vm's last completed + // clone job and the vm's running clone job, if one exists. + // Note: To have this field populated you need to explicitly request it via + // the "view" parameter of the Get/List request. + repeated CloneJob recent_clone_jobs = 17 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Provides details on the state of the Migrating VM in case of + // an error in replication. google.rpc.Status error = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The recent cutover jobs performed on the migrating VM. + // This field holds the vm's last completed cutover job and the vm's + // running cutover job, if one exists. + // Note: To have this field populated you need to explicitly request it via + // the "view" parameter of the Get/List request. + repeated CutoverJob recent_cutover_jobs = 20 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // CloneJob describes the process of creating a clone of a @@ -769,23 +850,31 @@ message CloneJob { // Details of the VM to create as the target of this clone job. oneof target_vm_details { // Output only. Details of the target VM in Compute Engine. - ComputeEngineTargetDetails compute_engine_target_details = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + ComputeEngineTargetDetails compute_engine_target_details = 20 + [(google.api.field_behavior) = OUTPUT_ONLY]; } - // Output only. The time the clone job was created (as an API call, not when it was - // actually created in the target). - google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The time the clone job was created (as an API call, not when + // it was actually created in the target). + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the clone job was ended. + google.protobuf.Timestamp end_time = 22 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // The name of the clone. - string name = 3; + // Output only. The name of the clone. + string name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. State of the clone job. State state = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the state was last updated. - google.protobuf.Timestamp state_time = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp state_time = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Provides details for the errors that led to the Clone Job's state. + // Output only. Provides details for the errors that led to the Clone Job's + // state. google.rpc.Status error = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -829,12 +918,18 @@ message CutoverJob { // Details of the VM to create as the target of this cutover job. oneof target_vm_details { // Output only. Details of the target VM in Compute Engine. - ComputeEngineTargetDetails compute_engine_target_details = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + ComputeEngineTargetDetails compute_engine_target_details = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; } - // Output only. The time the cutover job was created (as an API call, not when it was - // actually created in the target). - google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The time the cutover job was created (as an API call, not when + // it was actually created in the target). + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the cutover job had finished. + google.protobuf.Timestamp end_time = 16 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The name of the cutover job. string name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -843,15 +938,18 @@ message CutoverJob { State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the state was last updated. - google.protobuf.Timestamp state_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp state_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The current progress in percentage of the cutover job. int32 progress_percent = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Provides details for the errors that led to the Cutover Job's state. + // Output only. Provides details for the errors that led to the Cutover Job's + // state. google.rpc.Status error = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. A message providing possible extra details about the current state. + // Output only. A message providing possible extra details about the current + // state. string state_message = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -899,9 +997,7 @@ message CancelCloneJobRequest { } // Response message for 'CancelCloneJob' request. -message CancelCloneJobResponse { - -} +message CancelCloneJobResponse {} // Request message for 'ListCloneJobsRequest' request. message ListCloneJobsRequest { @@ -913,10 +1009,10 @@ message ListCloneJobsRequest { } ]; - // Optional. The maximum number of clone jobs to return. The service may return - // fewer than this value. If unspecified, at most 500 clone jobs will be - // returned. The maximum value is 1000; values above 1000 will be coerced to - // 1000. + // Optional. The maximum number of clone jobs to return. The service may + // return fewer than this value. If unspecified, at most 500 clone jobs will + // be returned. The maximum value is 1000; values above 1000 will be coerced + // to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Required. A page token, received from a previous `ListCloneJobs` call. @@ -938,8 +1034,8 @@ message ListCloneJobsResponse { // Output only. The list of clone jobs response. repeated CloneJob clone_jobs = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // Output only. A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Locations that could not be reached. @@ -974,10 +1070,12 @@ message Source { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The create time timestamp. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The update time timestamp. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // The labels of the source. map labels = 4; @@ -992,8 +1090,8 @@ message VmwareSourceDetails { // The credentials username. string username = 1; - // Input only. The credentials password. This is write only and can not be read in a GET - // operation. + // Input only. The credentials password. This is write only and can not be + // read in a GET operation. string password = 2 [(google.api.field_behavior) = INPUT_ONLY]; // The ip address of the vcenter this Source represents. @@ -1033,19 +1131,21 @@ message DatacenterConnector { ACTIVE = 4; } - // Output only. The time the connector was created (as an API call, not when it was - // actually installed). - google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The time the connector was created (as an API call, not when + // it was actually installed). + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last time the connector was updated with an API call. - google.protobuf.Timestamp update_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The connector's name. string name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Immutable. A unique key for this connector. This key is internal to the OVA connector - // and is supplied with its creation during the registration process and can - // not be modified. + // Immutable. A unique key for this connector. This key is internal to the OVA + // connector and is supplied with its creation during the registration process + // and can not be modified. string registration_id = 12 [(google.api.field_behavior) = IMMUTABLE]; // The service account to use in the connector when communicating with the @@ -1056,18 +1156,101 @@ message DatacenterConnector { // connector during the registration process and can not be modified. string version = 6; - // Output only. The communication channel between the datacenter connector and GCP. + // Output only. The communication channel between the datacenter connector and + // GCP. string bucket = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. State of the DatacenterConnector, as determined by the health checks. + // Output only. State of the DatacenterConnector, as determined by the health + // checks. State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the state was last set. - google.protobuf.Timestamp state_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp state_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Provides details on the state of the Datacenter Connector in case of an - // error. + // Output only. Provides details on the state of the Datacenter Connector in + // case of an error. google.rpc.Status error = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Appliance OVA version. + // This is the OVA which is manually installed by the user and contains the + // infrastructure for the automatically updatable components on the appliance. + string appliance_infrastructure_version = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Appliance last installed update bundle version. + // This is the version of the automatically updatable components on the + // appliance. + string appliance_software_version = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The available versions for updating this appliance. + AvailableUpdates available_versions = 15 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The status of the current / last upgradeAppliance operation. + UpgradeStatus upgrade_status = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// UpgradeStatus contains information about upgradeAppliance operation. +message UpgradeStatus { + // The possible values of the state. + enum State { + // The state was not sampled by the health checks yet. + STATE_UNSPECIFIED = 0; + + // The upgrade has started. + RUNNING = 1; + + // The upgrade failed. + FAILED = 2; + + // The upgrade finished successfully. + SUCCEEDED = 3; + } + + // The version to upgrade to. + string version = 1; + + // The state of the upgradeAppliance operation. + State state = 2; + + // Provides details on the state of the upgrade operation in case of an error. + google.rpc.Status error = 3; + + // The time the operation was started. + google.protobuf.Timestamp start_time = 4; + + // The version from which we upgraded. + string previous_version = 5; +} + +// Holds informatiom about the available versions for upgrade. +message AvailableUpdates { + // The newest deployable version of the appliance. + // The current appliance can't be updated into this version, and the owner + // must manually deploy this OVA to a new appliance. + ApplianceVersion new_deployable_appliance = 1; + + // The latest version for in place update. + // The current appliance can be updated to this version using the API or m4c + // CLI. + ApplianceVersion in_place_update = 2; +} + +// Describes an appliance version. +message ApplianceVersion { + // The appliance version. + string version = 1; + + // A link for downloading the version. + string uri = 2; + + // Determine whether it's critical to upgrade the appliance to this version. + bool critical = 3; + + // Link to a page that contains the version release notes. + string release_notes_uri = 4; } // Request message for 'ListSources' request. @@ -1105,8 +1288,8 @@ message ListSourcesResponse { // Output only. The list of sources response. repeated Source sources = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // Output only. A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Locations that could not be reached. @@ -1287,7 +1470,7 @@ message VmwareVmDetails { int64 committed_storage_mb = 12; // The VM's OS. See for example - // https://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html + // https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html // for types of strings this might hold. string guest_description = 11; @@ -1305,13 +1488,14 @@ message VmwareVmsDetails { // [fetchInventory][google.cloud.vmmigration.v1.VmMigration.FetchInventory]. message FetchInventoryResponse { oneof SourceVms { - // Output only. The description of the VMs in a Source of type Vmware. - VmwareVmsDetails vmware_vms = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // The description of the VMs in a Source of type Vmware. + VmwareVmsDetails vmware_vms = 1; } - // Output only. The timestamp when the source was last queried (if the result is from the - // cache). - google.protobuf.Timestamp update_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The timestamp when the source was last queried (if the result + // is from the cache). + google.protobuf.Timestamp update_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Utilization report details the utilization (CPU, memory, etc.) of selected @@ -1362,23 +1546,27 @@ message UtilizationReport { State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the state was last set. - google.protobuf.Timestamp state_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp state_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Provides details on the state of the report in case of an error. + // Output only. Provides details on the state of the report in case of an + // error. google.rpc.Status error = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The time the report was created (this refers to the time of the request, - // not the time the report creation completed). - google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The time the report was created (this refers to the time of + // the request, not the time the report creation completed). + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Time frame of the report. TimeFrame time_frame = 7; - // Output only. The point in time when the time frame ends. Notice that the time - // frame is counted backwards. For instance if the "frame_end_time" value is - // 2021/01/20 and the time frame is WEEK then the report covers the week + // Output only. The point in time when the time frame ends. Notice that the + // time frame is counted backwards. For instance if the "frame_end_time" value + // is 2021/01/20 and the time frame is WEEK then the report covers the week // between 2021/01/20 and 2021/01/14. - google.protobuf.Timestamp frame_end_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp frame_end_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Total number of VMs included in the report. int32 vm_count = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -1453,8 +1641,8 @@ message ListUtilizationReportsRequest { // 1000. int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; - // Required. A page token, received from a previous `ListUtilizationReports` call. - // Provide this to retrieve the subsequent page. + // Required. A page token, received from a previous `ListUtilizationReports` + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to `ListUtilizationReports` // must match the call that provided the page token. @@ -1470,10 +1658,11 @@ message ListUtilizationReportsRequest { // Response message for 'ListUtilizationReports' request. message ListUtilizationReportsResponse { // Output only. The list of reports. - repeated UtilizationReport utilization_reports = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated UtilizationReport utilization_reports = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // Output only. A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Locations that could not be reached. @@ -1506,10 +1695,11 @@ message CreateUtilizationReportRequest { ]; // Required. The report to create. - UtilizationReport utilization_report = 2 [(google.api.field_behavior) = REQUIRED]; + UtilizationReport utilization_report = 2 + [(google.api.field_behavior) = REQUIRED]; - // Required. The ID to use for the report, which will become the final component of - // the reports's resource name. + // Required. The ID to use for the report, which will become the final + // component of the reports's resource name. // // This value maximum length is 63 characters, and valid characters // are /[a-z][0-9]-/. It must start with an english letter and must not @@ -1561,10 +1751,11 @@ message DeleteUtilizationReportRequest { // Response message for 'ListDatacenterConnectors' request. message ListDatacenterConnectorsResponse { // Output only. The list of sources response. - repeated DatacenterConnector datacenter_connectors = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated DatacenterConnector datacenter_connectors = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // Output only. A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Locations that could not be reached. @@ -1599,7 +1790,8 @@ message CreateDatacenterConnectorRequest { string datacenter_connector_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The create request body. - DatacenterConnector datacenter_connector = 3 [(google.api.field_behavior) = REQUIRED]; + DatacenterConnector datacenter_connector = 3 + [(google.api.field_behavior) = REQUIRED]; // A request ID to identify requests. Specify a unique request ID // so that if you must retry your request, the server will know to ignore @@ -1643,6 +1835,35 @@ message DeleteDatacenterConnectorRequest { string request_id = 2; } +// Request message for 'UpgradeAppliance' request. +message UpgradeApplianceRequest { + // Required. The DatacenterConnector name. + string datacenter_connector = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmmigration.googleapis.com/DatacenterConnector" + } + ]; + + // A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2; +} + +// Response message for 'UpgradeAppliance' request. +message UpgradeApplianceResponse {} + // Request message for 'ListDatacenterConnectors' request. message ListDatacenterConnectorsRequest { // Required. The parent, which owns this collection of connectors. @@ -1653,14 +1874,14 @@ message ListDatacenterConnectorsRequest { } ]; - // Optional. The maximum number of connectors to return. The service may return - // fewer than this value. If unspecified, at most 500 sources will be + // Optional. The maximum number of connectors to return. The service may + // return fewer than this value. If unspecified, at most 500 sources will be // returned. The maximum value is 1000; values above 1000 will be coerced to // 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Required. A page token, received from a previous `ListDatacenterConnectors` call. - // Provide this to retrieve the subsequent page. + // Required. A page token, received from a previous `ListDatacenterConnectors` + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to // `ListDatacenterConnectors` must match the call that provided the page @@ -1683,8 +1904,8 @@ message ComputeEngineTargetDefaults { // The full path of the resource of type TargetProject which represents the // Compute Engine project in which to create this VM. string target_project = 2 [(google.api.resource_reference) = { - type: "vmmigration.googleapis.com/TargetProject" - }]; + type: "vmmigration.googleapis.com/TargetProject" + }]; // The zone in which to create the VM. string zone = 3; @@ -1714,7 +1935,8 @@ message ComputeEngineTargetDefaults { ComputeEngineLicenseType license_type = 11; // Output only. The OS license returned from the adaptation module report. - AppliedLicense applied_license = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + AppliedLicense applied_license = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Compute instance scheduling information (if empty default is used). ComputeScheduling compute_scheduling = 13; @@ -1724,10 +1946,17 @@ message ComputeEngineTargetDefaults { bool secure_boot = 14; // Output only. The VM Boot Option, as set in the source vm. - ComputeEngineBootOption boot_option = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + ComputeEngineBootOption boot_option = 15 + [(google.api.field_behavior) = OUTPUT_ONLY]; // The metadata key/value pairs to assign to the VM. map metadata = 16; + + // Additional licenses to assign to the VM. + repeated string additional_licenses = 17; + + // The hostname to assign to the VM. + string hostname = 18; } // ComputeEngineTargetDetails is a collection of details for creating a VM in a @@ -1781,6 +2010,12 @@ message ComputeEngineTargetDetails { // The metadata key/value pairs to assign to the VM. map metadata = 16; + + // Additional licenses to assign to the VM. + repeated string additional_licenses = 17; + + // The hostname to assign to the VM. + string hostname = 18; } // NetworkInterface represents a NIC of a VM. @@ -1956,10 +2191,10 @@ message ListMigratingVmsRequest { } ]; - // Optional. The maximum number of migrating VMs to return. The service may return - // fewer than this value. If unspecified, at most 500 migrating VMs will be - // returned. The maximum value is 1000; values above 1000 will be coerced to - // 1000. + // Optional. The maximum number of migrating VMs to return. The service may + // return fewer than this value. If unspecified, at most 500 migrating VMs + // will be returned. The maximum value is 1000; values above 1000 will be + // coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Required. A page token, received from a previous `ListMigratingVms` call. @@ -1974,15 +2209,19 @@ message ListMigratingVmsRequest { // Optional. the order by fields for the result. string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The level of details of each migrating VM. + MigratingVmView view = 6 [(google.api.field_behavior) = OPTIONAL]; } // Response message for 'ListMigratingVms' request. message ListMigratingVmsResponse { // Output only. The list of Migrating VMs response. - repeated MigratingVm migrating_vms = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated MigratingVm migrating_vms = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // Output only. A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Locations that could not be reached. @@ -1998,6 +2237,9 @@ message GetMigratingVmRequest { type: "vmmigration.googleapis.com/MigratingVm" } ]; + + // Optional. The level of details of the migrating VM. + MigratingVmView view = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request message for 'UpdateMigratingVm' request. @@ -2051,9 +2293,7 @@ message StartMigrationRequest { } // Response message for 'StartMigration' request. -message StartMigrationResponse { - -} +message StartMigrationResponse {} // Request message for 'PauseMigration' request. message PauseMigrationRequest { @@ -2067,9 +2307,7 @@ message PauseMigrationRequest { } // Response message for 'PauseMigration' request. -message PauseMigrationResponse { - -} +message PauseMigrationResponse {} // Request message for 'ResumeMigration' request. message ResumeMigrationRequest { @@ -2083,9 +2321,7 @@ message ResumeMigrationRequest { } // Response message for 'ResumeMigration' request. -message ResumeMigrationResponse { - -} +message ResumeMigrationResponse {} // Request message for 'FinalizeMigration' request. message FinalizeMigrationRequest { @@ -2099,9 +2335,7 @@ message FinalizeMigrationRequest { } // Response message for 'FinalizeMigration' request. -message FinalizeMigrationResponse { - -} +message FinalizeMigrationResponse {} // TargetProject message represents a target Compute Engine project for a // migration or a clone. @@ -2111,8 +2345,8 @@ message TargetProject { pattern: "projects/{project}/locations/{location}/targetProjects/{target_project}" }; - // The name of the target project. - string name = 1; + // Output only. The name of the target project. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // The target project ID (number) or project name. string project = 2; @@ -2120,12 +2354,14 @@ message TargetProject { // The target project's description. string description = 3; - // Output only. The time this target project resource was created (not related to when the - // Compute Engine project it points to was created). - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The time this target project resource was created (not related + // to when the Compute Engine project it points to was created). + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last time the target project resource was updated. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Request message for 'GetTargetProject' call. @@ -2172,10 +2408,11 @@ message ListTargetProjectsRequest { // Response message for 'ListTargetProjects' call. message ListTargetProjectsResponse { // Output only. The list of target response. - repeated TargetProject target_projects = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated TargetProject target_projects = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // Output only. A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Locations that could not be reached. @@ -2276,14 +2513,16 @@ message Group { pattern: "projects/{project}/locations/{location}/groups/{group}" }; - // The Group name. - string name = 1; + // Output only. The Group name. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The create time timestamp. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The update time timestamp. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // User-provided description of the group. string description = 4; @@ -2327,8 +2566,8 @@ message ListGroupsResponse { // Output only. The list of groups response. repeated Group groups = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // Output only. A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Locations that could not be reached. @@ -2444,14 +2683,12 @@ message AddGroupMigrationRequest { // The full path name of the MigratingVm to add. string migrating_vm = 2 [(google.api.resource_reference) = { - type: "vmmigration.googleapis.com/MigratingVm" - }]; + type: "vmmigration.googleapis.com/MigratingVm" + }]; } // Response message for 'AddGroupMigration' request. -message AddGroupMigrationResponse { - -} +message AddGroupMigrationResponse {} // Request message for 'RemoveMigration' request. message RemoveGroupMigrationRequest { @@ -2465,14 +2702,12 @@ message RemoveGroupMigrationRequest { // The MigratingVm to remove. string migrating_vm = 2 [(google.api.resource_reference) = { - type: "vmmigration.googleapis.com/MigratingVm" - }]; + type: "vmmigration.googleapis.com/MigratingVm" + }]; } // Response message for 'RemoveMigration' request. -message RemoveGroupMigrationResponse { - -} +message RemoveGroupMigrationResponse {} // Request message for 'CreateCutoverJob' request. message CreateCutoverJobRequest { @@ -2518,9 +2753,7 @@ message CancelCutoverJobRequest { } // Response message for 'CancelCutoverJob' request. -message CancelCutoverJobResponse { - -} +message CancelCutoverJobResponse {} // Request message for 'ListCutoverJobsRequest' request. message ListCutoverJobsRequest { @@ -2532,10 +2765,10 @@ message ListCutoverJobsRequest { } ]; - // Optional. The maximum number of cutover jobs to return. The service may return - // fewer than this value. If unspecified, at most 500 cutover jobs will be - // returned. The maximum value is 1000; values above 1000 will be coerced to - // 1000. + // Optional. The maximum number of cutover jobs to return. The service may + // return fewer than this value. If unspecified, at most 500 cutover jobs will + // be returned. The maximum value is 1000; values above 1000 will be coerced + // to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Required. A page token, received from a previous `ListCutoverJobs` call. @@ -2555,10 +2788,11 @@ message ListCutoverJobsRequest { // Response message for 'ListCutoverJobs' request. message ListCutoverJobsResponse { // Output only. The list of cutover jobs response. - repeated CutoverJob cutover_jobs = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated CutoverJob cutover_jobs = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // Output only. A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Locations that could not be reached. @@ -2579,10 +2813,12 @@ message GetCutoverJobRequest { // Represents the metadata of the long-running operation. message OperationMetadata { // Output only. The time the operation was created. - google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the operation finished running. - google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Server-defined resource path for the target of the operation. string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -2595,8 +2831,9 @@ message OperationMetadata { // Output only. Identifies whether the user has requested cancellation // of the operation. Operations that have successfully been cancelled - // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`. + // have [Operation.error][] value with a + // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`. bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. API version used to start the operation. @@ -2637,20 +2874,28 @@ message MigrationError { // Migrate for Compute encountered an error during utilization report // creation. UTILIZATION_REPORT_ERROR = 8; + + // Migrate for Compute encountered an error during appliance upgrade. + APPLIANCE_UPGRADE_ERROR = 9; } // Output only. The error code. ErrorCode code = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The localized error message. - google.rpc.LocalizedMessage error_message = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.rpc.LocalizedMessage error_message = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Suggested action for solving the error. - google.rpc.LocalizedMessage action_item = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.rpc.LocalizedMessage action_item = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. URL(s) pointing to additional information on handling the current error. - repeated google.rpc.Help.Link help_links = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. URL(s) pointing to additional information on handling the + // current error. + repeated google.rpc.Help.Link help_links = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the error occurred. - google.protobuf.Timestamp error_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp error_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/getmigratingvm/AsyncGetMigratingVm.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/getmigratingvm/AsyncGetMigratingVm.java index 8eb4de2412c5..e6e982563987 100644 --- a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/getmigratingvm/AsyncGetMigratingVm.java +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/getmigratingvm/AsyncGetMigratingVm.java @@ -21,6 +21,7 @@ import com.google.cloud.vmmigration.v1.GetMigratingVmRequest; import com.google.cloud.vmmigration.v1.MigratingVm; import com.google.cloud.vmmigration.v1.MigratingVmName; +import com.google.cloud.vmmigration.v1.MigratingVmView; import com.google.cloud.vmmigration.v1.VmMigrationClient; public class AsyncGetMigratingVm { @@ -38,6 +39,7 @@ public static void asyncGetMigratingVm() throws Exception { .setName( MigratingVmName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]") .toString()) + .setView(MigratingVmView.forNumber(0)) .build(); ApiFuture future = vmMigrationClient.getMigratingVmCallable().futureCall(request); diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/getmigratingvm/SyncGetMigratingVm.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/getmigratingvm/SyncGetMigratingVm.java index 0d9a086c2296..91dc06f8e534 100644 --- a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/getmigratingvm/SyncGetMigratingVm.java +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/getmigratingvm/SyncGetMigratingVm.java @@ -20,6 +20,7 @@ import com.google.cloud.vmmigration.v1.GetMigratingVmRequest; import com.google.cloud.vmmigration.v1.MigratingVm; import com.google.cloud.vmmigration.v1.MigratingVmName; +import com.google.cloud.vmmigration.v1.MigratingVmView; import com.google.cloud.vmmigration.v1.VmMigrationClient; public class SyncGetMigratingVm { @@ -37,6 +38,7 @@ public static void syncGetMigratingVm() throws Exception { .setName( MigratingVmName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]") .toString()) + .setView(MigratingVmView.forNumber(0)) .build(); MigratingVm response = vmMigrationClient.getMigratingVm(request); } diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/listmigratingvms/AsyncListMigratingVms.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/listmigratingvms/AsyncListMigratingVms.java index 6ba503ab3fc8..2199031ec622 100644 --- a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/listmigratingvms/AsyncListMigratingVms.java +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/listmigratingvms/AsyncListMigratingVms.java @@ -20,6 +20,7 @@ import com.google.api.core.ApiFuture; import com.google.cloud.vmmigration.v1.ListMigratingVmsRequest; import com.google.cloud.vmmigration.v1.MigratingVm; +import com.google.cloud.vmmigration.v1.MigratingVmView; import com.google.cloud.vmmigration.v1.SourceName; import com.google.cloud.vmmigration.v1.VmMigrationClient; @@ -40,6 +41,7 @@ public static void asyncListMigratingVms() throws Exception { .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") + .setView(MigratingVmView.forNumber(0)) .build(); ApiFuture future = vmMigrationClient.listMigratingVmsPagedCallable().futureCall(request); diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/listmigratingvms/AsyncListMigratingVmsPaged.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/listmigratingvms/AsyncListMigratingVmsPaged.java index 452d27d5174a..e4c505ff7455 100644 --- a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/listmigratingvms/AsyncListMigratingVmsPaged.java +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/listmigratingvms/AsyncListMigratingVmsPaged.java @@ -20,6 +20,7 @@ import com.google.cloud.vmmigration.v1.ListMigratingVmsRequest; import com.google.cloud.vmmigration.v1.ListMigratingVmsResponse; import com.google.cloud.vmmigration.v1.MigratingVm; +import com.google.cloud.vmmigration.v1.MigratingVmView; import com.google.cloud.vmmigration.v1.SourceName; import com.google.cloud.vmmigration.v1.VmMigrationClient; import com.google.common.base.Strings; @@ -41,6 +42,7 @@ public static void asyncListMigratingVmsPaged() throws Exception { .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") + .setView(MigratingVmView.forNumber(0)) .build(); while (true) { ListMigratingVmsResponse response = diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/listmigratingvms/SyncListMigratingVms.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/listmigratingvms/SyncListMigratingVms.java index 6f40e2a1ad30..4449401af61b 100644 --- a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/listmigratingvms/SyncListMigratingVms.java +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/listmigratingvms/SyncListMigratingVms.java @@ -19,6 +19,7 @@ // [START vmmigration_v1_generated_vmmigrationclient_listmigratingvms_sync] import com.google.cloud.vmmigration.v1.ListMigratingVmsRequest; import com.google.cloud.vmmigration.v1.MigratingVm; +import com.google.cloud.vmmigration.v1.MigratingVmView; import com.google.cloud.vmmigration.v1.SourceName; import com.google.cloud.vmmigration.v1.VmMigrationClient; @@ -39,6 +40,7 @@ public static void syncListMigratingVms() throws Exception { .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") + .setView(MigratingVmView.forNumber(0)) .build(); for (MigratingVm element : vmMigrationClient.listMigratingVms(request).iterateAll()) { // doThingsWith(element); diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/upgradeappliance/AsyncUpgradeAppliance.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/upgradeappliance/AsyncUpgradeAppliance.java new file mode 100644 index 000000000000..48ff72a7f885 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/upgradeappliance/AsyncUpgradeAppliance.java @@ -0,0 +1,51 @@ +/* + * 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 + * + * 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. + */ + +package com.google.cloud.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_vmmigrationclient_upgradeappliance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmmigration.v1.DatacenterConnectorName; +import com.google.cloud.vmmigration.v1.UpgradeApplianceRequest; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.longrunning.Operation; + +public class AsyncUpgradeAppliance { + + public static void main(String[] args) throws Exception { + asyncUpgradeAppliance(); + } + + public static void asyncUpgradeAppliance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + UpgradeApplianceRequest request = + UpgradeApplianceRequest.newBuilder() + .setDatacenterConnector( + DatacenterConnectorName.of( + "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmMigrationClient.upgradeApplianceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmmigration_v1_generated_vmmigrationclient_upgradeappliance_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/upgradeappliance/AsyncUpgradeApplianceLRO.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/upgradeappliance/AsyncUpgradeApplianceLRO.java new file mode 100644 index 000000000000..2c455cd822ef --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/upgradeappliance/AsyncUpgradeApplianceLRO.java @@ -0,0 +1,52 @@ +/* + * 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 + * + * 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. + */ + +package com.google.cloud.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_vmmigrationclient_upgradeappliance_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmmigration.v1.DatacenterConnectorName; +import com.google.cloud.vmmigration.v1.OperationMetadata; +import com.google.cloud.vmmigration.v1.UpgradeApplianceRequest; +import com.google.cloud.vmmigration.v1.UpgradeApplianceResponse; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class AsyncUpgradeApplianceLRO { + + public static void main(String[] args) throws Exception { + asyncUpgradeApplianceLRO(); + } + + public static void asyncUpgradeApplianceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + UpgradeApplianceRequest request = + UpgradeApplianceRequest.newBuilder() + .setDatacenterConnector( + DatacenterConnectorName.of( + "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmMigrationClient.upgradeApplianceOperationCallable().futureCall(request); + // Do something. + UpgradeApplianceResponse response = future.get(); + } + } +} +// [END vmmigration_v1_generated_vmmigrationclient_upgradeappliance_lro_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/upgradeappliance/SyncUpgradeAppliance.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/upgradeappliance/SyncUpgradeAppliance.java new file mode 100644 index 000000000000..94aff1522b47 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigrationclient/upgradeappliance/SyncUpgradeAppliance.java @@ -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 + * + * 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. + */ + +package com.google.cloud.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_vmmigrationclient_upgradeappliance_sync] +import com.google.cloud.vmmigration.v1.DatacenterConnectorName; +import com.google.cloud.vmmigration.v1.UpgradeApplianceRequest; +import com.google.cloud.vmmigration.v1.UpgradeApplianceResponse; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncUpgradeAppliance { + + public static void main(String[] args) throws Exception { + syncUpgradeAppliance(); + } + + public static void syncUpgradeAppliance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + UpgradeApplianceRequest request = + UpgradeApplianceRequest.newBuilder() + .setDatacenterConnector( + DatacenterConnectorName.of( + "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DATACENTER_CONNECTOR]") + .toString()) + .setRequestId("requestId693933066") + .build(); + UpgradeApplianceResponse response = vmMigrationClient.upgradeApplianceAsync(request).get(); + } + } +} +// [END vmmigration_v1_generated_vmmigrationclient_upgradeappliance_sync]